Fork me on GitHub

npm run start 后台运行

 

 

  1. yum provides */nohup

  2.  
  3. nohup npm start &

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

停止程序


 
  1. ps -ef | grep npm

  2. ps -ef | grep node

  3.  

--------------------- 本文来自 chenshiying007 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/qq_27384769/article/details/78849930?utm_source=copy

posted @ 2018-10-05 21:52  youxiu326  阅读(13945)  评论(0编辑  收藏  举报