1、安装pm2输入命令:npm install pm2 -g
5、pm2的常用命令1.查看日志pm2 log2.停止某个进程,例如devpm2 stop dev3.重启某个进程,例如devpm2 restart dev