安装的NodeJS获取资源的NodeJS
获取资源的NodeJS
#4.x版
curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
#5.x的
curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -
#0.10
curl --silent --location https://rpm.nodesource.com/setup | bash -
我这里安装的是4.x版
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
安装yum install -y nodejs
启动某个js服务器nohup node chat.js&
ps -ef |grep node 查看pid
kill pid 数字 再重启