linux pm2 code example
Example 1: installing pm2 on linux
$ sudo npm i -g pm2
Example 2: install pm2
npm install pm2 -g
Example 3: pm2 install
$ pm2 [list|ls|status]
Example 4: pm2 install
$ pm2 restart app_name
$ pm2 reload app_name
$ pm2 stop app_name
$ pm2 delete app_name