启动
$ 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
网友评论