問題
使用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