node记录】的更多相关文章

安装完node和npm ,接下来安装pm2 首先简单介绍下pm2,官网的介绍是: pm2 是一个带有负载均衡功能的Node应用的进程管理器.当你要把你的独立代码利用全部的服务器上的所有CPU,并保证进程永远都活着,0秒的重载, PM2是完美的.它非常适合IaaS结构,但不要把它用于PaaS方案(随后将开发Paas的解决方案). 备注:SaaS.PaaS和IaaS是云服务模式.        SaaS 软件即服务,例如Google的 Gmail 邮箱服务.面向应用型用户.        PaaS…
云服务器厂商:京东云 我选择的操作系统为公共镜像CentOS7.2. 步骤: 首先登陆服务器:使用ssh 用户名@IP地址  登陆 1. wget命令下载Node.js安装包 登陆node的官网复制下载链接: 在node官网download初复制Linux 系统 (x64)下载地址链接(右键--复制链接地址),这里亲测需要注意的事项,如果你打开的是node的英文官网,复制的地址是国外下载地址,如果你打开的是中文node官网,复制的下载地址是淘宝镜像!!! 国外下载地址亲测下载两次,一次error…
[mySQL的安装]: CentOS7默认数据库是mariadb,现在来安装mySQL 1.下载安装包 这里下载了四个安装包,后面会用到 yum -y install perl perl-devel autoconf libaio 2.将安装包移动到 /usr/local/ 下 mv /root/mysql-5.7.19-1.el7.x86_64.rpm-bundle.tar /usr/local/ 3.解压 tar -xvf mysql-5.7.19-1.el7.x86_64.rpm-bund…
集中管理 require('sequelize'); require('node-schedule')…
准备学习node,记录一段 1.搭建好 node 以后,就记录一下 hello world…
http://xcacm.hfut.edu.cn/problem.php?id=1211 SPFA模板题目 最短路变种,从起点终点各找一次最短路相加 #include<iostream> #include<vector> #include<deque> #include<cstdio> #include<cstring> using namespace std; struct Edge { int to,length; }; bool spfa(…
异或链表(Xor Linked List)也是一种链式存储结构,它可以降低空间复杂度达到和双向链表一样目的,任何一个节点可以方便的访问它的前驱节点和后继结点.可以参阅wiki 普通的双向链表 class Node { public: int data; Node *prev; Node *next; }; class BiLinkedList { public: Node *head; Node *tail; }; 普通双向链表的一个节点表示如下: 完整的普通双向链表如下所示:   对于异或链表…
Q: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. Input: (2 -> 4 -> 3) + (5 -> 6 -&g…
eg 2,3,5 把第一个元素(2,1)放到最小堆,2表示乘积,1表示乘数   乘数     队列                          最小堆                   即将进行的操作 第一阶段 [1]   [2,3,5]                2                          (2,1)出堆,(3,1)入堆,生成新的乘数2,并且(2*2,2)入堆: 第二阶段 [1]   [3,5]                    3,4        …
分析: 考察并查集,注意中间合并时的时间的合并和人数的合并. #include <iostream> #include <stdio.h> #include <algorithm> #include <cstring> #include <string> #include <vector> #include <cctype> #include <map> using namespace std; const i…