apt-get install nodejs;
apt-get install npm;
npm install pm2;
安装完成以后需要执行此命令:
sudo ln -s /usr/bin/nodejs /usr/bin/node
然后就可以运行pm2 start XX.js;