This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8577|Reply: 0

Linux npm start running in the background

[Copy link]
Posted on 12/13/2018 4:45:31 PM | | |
Background processes run

nohup

The standard output of the original program is automatically changed to the nohup.out file in the current directory, which acts as a log.

Stop the program


pm2

  • Forever is out, and it is seriously recommended to run nodejs in the pm2 way, which is the best, no one.
  • Built-in load balancing (using the Node cluster module)
  • Run in the background
  • 0 seconds of downtime and heavy load, I understand that it probably means that there is no need to stop when upgrading maintenance.
  • Startup scripts with Ubuntu and CentOS
  • Stop unstable processes (avoid infinite loops)
  • Console Detection
  • HTTP API available
  • Remote control and real-time interface API (Nodejs module, allows interaction with PM2 process manager)
  • PM2 official websiteThe hyperlink login is visible.


Installation


Start the project






Previous:Add ActiveMQ to system services under Windows
Next:MD is angry with the iron fist
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com