后台npm

后台进程运行
 

nohup
which nohup
.bash_profile中并source加载

如果没有就安装吧
yum provides */nohup

nohup npm start &
原程序的的标准输出被自动改向到当前目录下的nohup.out文件,起到了log的作用。

停止程序

ps -ef | grep npm
ps -ef | grep node
kill -9 10532
---------------------
作者:chenshiying007
来源:CSDN
原文:https://blog.csdn.net/qq_27384769/article/details/78849930
版权声明:本文为博主原创文章,转载请附上博文链接!

原文地址:https://www.cnblogs.com/Leechg/p/10268782.html