前提:安装node、pm2、nginx
nginx:
1)下载:http://nginx.org/en/download.html
2)解压包tar -xzf ........
3)安装库:yum install -y httpd-devel pcre perl pcre-devel zlib zlib-devel GeoIP GeoIP-devel
5)配置
# ./configure
6) 编译
# make
7) 安装
# make install
8) 检查是否安装成功
# cd /usr/local/nginx/sbin
# ./nginx -t
可参考:http://www.linuxidc.com/Linux/2016-08/134110.htm
使用pm2 start 启动node项目