问题
使用nohup 命令在退出用户时,程序还是停止了
奇怪的是java 程序是没问题的,有大神可以解答一下么?
nohup node http.js >/dev/null 2>&1 &
解决方法
使用pm2
npm install -g pm2
pm2 start http.js
pm2 start list
pm2 start stopall
或是
npm install forever -g
forever start
使用nohup 命令在退出用户时,程序还是停止了
奇怪的是java 程序是没问题的,有大神可以解答一下么?
nohup node http.js >/dev/null 2>&1 &
使用pm2
npm install -g pm2
pm2 start http.js
pm2 start list
pm2 start stopall
或是
npm install forever -g
forever start