"PM2"

Source: Internet
Author: User

PM2 and Forever modules are the most commonly used Nodejs process daemon modules, which are more commonly used and more powerful (providing load). The main principle is PM2 open a main process, and then open the sub-process to run the NODEJS project, the main process to listen to the sub-process, if the child process crashes, PM2 will start it by itself, and can also start multiple child processes on a project, PM2 the main process to do random forwarding requests.

NPM Install Pm2-g
// Start // Displays the project process that was started, showing information such as Project Id/name load // automatically rely on the number of computer cores, try to start many processes //  Reload // Restart project, used to change the Nodejs code, it does not have Node-dev function pm2 stop  // Stop a process PM2 logs

"PM2"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.