持续运行 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>