Node.js Process Manager (pm2)
Installation
To install Node.js and NPM you can use NVM
Start an app
The simplest way to start, daemonize and monitor your application is by using this command line:
Or start any other application easily
Managing processes
Managing application state is simple here are the commands:
restart
reload
stop
delete
Instead of app_name you can pass:
- all to act on all processes
- id to act on a specific process id
Check status, logs, metrics
Now that you have started this application, you can check its status, logs, metrics and even get the online dashboard with pm2.io.
List managed applications
List the status of all application managed by PM2:
Terminal Based Dashboard
Here is a realtime dashboard that fits directly into your terminal: