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

猜你喜欢

转载自blog.csdn.net/youxiu326/article/details/82947436