Environment: Ubuntu18.04 server and so Ali
Global forever and try to install pm2 fail, finally comes to linux nohub start, before the start springboot same with nohub
command:
nohup npm start > myLog.log 2>&1 &
Description: npm start script commands for the configuration, usually start directly with node app.js, but I started this little project of express incomplete
Met the problem: After the success of the project started after closing xshell found still can not access the original Ali cloud cloud server itself is the problem, you need to exit command to exit the normal process will not kill just started
Reference blog:
Sunshine White : nodejs runs in the background on linux
TLScott : Ali cloud solutions use nohup to run in the background node.js services after turning off the putty exit