美文网首页
nohup(后台运行npm start)

nohup(后台运行npm start)

作者: 普笛 | 来源:发表于2019-06-25 21:06 被阅读0次

启动

$ which nohup
$ sudo apt install nohup
$ vim .bashrc
# 在PATH=$PATH:$HOME/bin后面加上which nohup的地址
# PATH="$PATH:$HOME/bin:/usr/bin/nohup"
$ source ~/.bashrc
$ cd /path/to/your/project
$ nohup npm start &

停止

$ ps -aux

$ netstat -nap|grep 8000

$ kill -9 pid

相关文章

网友评论

      本文标题:nohup(后台运行npm start)

      本文链接:https://www.haomeiwen.com/subject/reqfcctx.html