The supervisor| of Nodejs project Management | pm2| | Forever

Source: Internet
Author: User

    • Supervisor is used for development environments.
    • Forever manages multiple sites, each with a small amount of traffic and no monitoring required.
    • PM2 website has a large number of visits and requires a complete monitoring interface.

Supervisor Features: Code modification, real-time restart

Installation: CNPM install-g Supervisor

Start: Supervisor App.js | | Bin/www

Over

Forever

Common commands:

Forever List

Forever Start Bin/www

Forever Stop 0 (Forever list inside serial number)

Forever StopAll

Forever Restart 0

Forever Restartall

Log directory: ~.forever/logs

Pm2

Common commands:

PM2 List

PM2 Start Bin/www-n project name

PM2 Stop 0

PM2 Delete 0

PM2 Restart 0

PM2 logs

PM2 Show 0

PM2 Monit

Log directory ~.pm2/logs

The supervisor| of Nodejs project Management | pm2| | Forever

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.