Installation: npm install pm2 -g #Install pm2 globally
View version: pm2 -v
Automatic restart: pm2 start hello.js --watch
View the list: pm2 list
View log: pm2 log <id|name>
Stop the service: pm2 stop <id|name>
Installation: npm install pm2 -g #Install pm2 globally
View version: pm2 -v
Automatic restart: pm2 start hello.js --watch
View the list: pm2 list
View log: pm2 log <id|name>
Stop the service: pm2 stop <id|name>