有没有办法让pm2运行一个npm启动脚本,或者你只需要运行 pm2 start app.js
pm2 start app.js
所以在发展中
npm start
然后在pm2的制作中你会运行类似的东西
pm2 start 'npm start'
永远有一种相同的方法可以做到这一点
forever start -c "npm start" ./
node.js npm pm2
node.js ×1
npm ×1
pm2 ×1