一、node.js+express框架的服务项目搭建 step1:创建一个项目目录:myApp step2:命令行进入该目录,执行: 在命令执行过程中,会让你设置一个项目的入口文件(entry point),可以随意设置例如:index.js。 执行完毕后,会在项目中创建一个package.json ...
分类:
Web程序 时间:
2018-05-25 13:56:31
阅读次数:
1179
之前用node搭建后台都是用的express,无奈公司最近的项目用的是Koa,工作之余了解一下。 一、环境搭建 1、新建一个js文件取名app.js,代码如下: 2、那么问题来了,怎么正确引入koa这个模块呢?比较快速的方法是直接npm npm install koa@2.0.0 二、访问 node ...
分类:
Web程序 时间:
2018-05-25 13:40:13
阅读次数:
216
NTP服务配置 NTP客户端配置 监控节点配置(方式一) 以下指令在anode节点执行 为CEPH集群生成UUID scp root@92.0.0.11:/etc/ceph/ceph.conf /etc/ceph/ scp root@92.0.0.11:/etc/ceph/ceph.client.a ...
分类:
其他好文 时间:
2018-05-25 13:34:50
阅读次数:
497
环境拓扑 | 主机 | 配置 | 地址 | 运行服务 | | | | | | | node | CPU:1 内存:2GB 磁盘:vda(20GB) | br mgmt:92.0.0.250 br ex:192.168.203.250/19 | ntp | | anode | CPU:1 内存:2GB ...
分类:
其他好文 时间:
2018-05-25 13:20:19
阅读次数:
161
1. Linked List Cycle II Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the linked ...
分类:
其他好文 时间:
2018-05-25 11:08:15
阅读次数:
167
首先,列出来我们需要的东西: node.js环境(npm包管理器) vue-cli 脚手架构建工具 cnpm npm的淘宝镜像 安装node.js 从node.js官网下载并安装node,安装过程很简单,一路“下一步”就可以了(傻瓜式安装)。 安装完成之后,打开命令行工具,输入 node -v,如下 ...
分类:
其他好文 时间:
2018-05-25 10:56:46
阅读次数:
146
You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need t ...
分类:
其他好文 时间:
2018-05-25 01:33:34
阅读次数:
167
1 此类是用来构建xml中节点的。方法举例: 2 //构建 XML Document 报文 3 private String createLoginXML( String serialNo, String reqTime, String userID, String userPWD){ 4 Stri... ...
分类:
编程语言 时间:
2018-05-24 21:52:07
阅读次数:
426
Adding Cypress to a project is a simple npm install away. We won’t need any global dependencies beyond node and npm to get started with Cypress. In th ...
分类:
其他好文 时间:
2018-05-24 21:17:27
阅读次数:
190
阿里云:https://yq.aliyun.com/articles/92894 Kubernates集群入门(1) 一、K8s安装准备 1.至少两台主机,一台作为master,一台作为node。两台主机需要关闭防火墙。 ...
分类:
其他好文 时间:
2018-05-24 20:39:11
阅读次数:
134