pm2

npm install -g pm2

pm2 start app.js

pm2 stop all 

pm2 restart app.js

原文地址:https://www.cnblogs.com/zzzzzzzsy/p/7920856.html