Exit xshell to keep the process uninterrupted

The server connected through Xshell, after the vue project is started, if xshell is closed, the project will stop.

The solution is to enter the following command instead of npm run serve 

nohup npm run serve >/dev/null 2>&1 &

The nohup command can continue to run the corresponding process after you log out of the account/close the terminal. Nohup means no hang up. 

Guess you like

Origin blog.csdn.net/weixin_42217154/article/details/111367289