pm2 docs install code example
Example 1: install pm2
npm install pm2 -g
Example 2: pm2 status
pm2 status <processname>
Example 3: pm2 install
$ pm2 logs --lines 200
npm install pm2 -g
pm2 status <processname>
$ pm2 logs --lines 200