nohup npm run serve >>frontend.log 2>&1 & tail -f frontend.log ps -ef | grep npm kill -9 数字id nohup + &,就可以放在后端执行