持續執行 nohup
永遠在 Linux 上的替代品是 nohup。
開始一個 nohup 例項
- cd 到
app.js或www資料夾的位置 - 跑
nohup nodejs app.js &
殺死這個過程
- 跑
ps -ef|grep nodejs kill -9 <the process number>
永遠在 Linux 上的替代品是 nohup。
開始一個 nohup 例項
app.js 或 www 資料夾的位置nohup nodejs app.js &殺死這個過程
ps -ef|grep nodejskill -9 <the process number>