linux npm start 保持后台运行
后台进程运行nohup
nohup npm start &
原程序的的标准输出被自动改向到当前目录下的nohup.out文件,起到了log的做用。
中止程序
ps -ef | grep npm
ps -ef | grep node
kill -9 10532
linux npm start 保持后台运行
后台进程运行nohup
nohup npm start &
原程序的的标准输出被自动改向到当前目录下的nohup.out文件,起到了log的做用。
中止程序
ps -ef | grep npm
ps -ef | grep node
kill -9 10532