apt-get install nodejs;
apt-get install npm;
npm install pm2;
安装nodejs和npm以后出现 /usr/bin/env: node: No such file or directory
安装完成以后需要执行此命令:
然后就可以运行pm2 start XX.js;
apt-get install nodejs;
apt-get install npm;
npm install pm2;
安装完成以后需要执行此命令:
然后就可以运行pm2 start XX.js;