pm2 commands

PHOTO EMBED

Mon Sep 23 2024 08:21:40 GMT+0000 (Coordinated Universal Time)

Saved by @StephenThevar #nodejs

        PM2 is a Production Process Manager for Node.js applications
                     with a built-in Load Balancer.

                Start and Daemonize any application:
                $ pm2 start app.js

                Load Balance 4 instances of api.js:
                $ pm2 start api.js -i 4

                Monitor in production:
                $ pm2 monitor

                Make pm2 auto-boot at server restart:
                $ pm2 startup

                To go further checkout:
                http://pm2.io/
content_copyCOPY