pm2
npm install pm2 -g
3.78
9
$ pm2 start bashscript.sh
$ pm2 start python-app.py --watch
$ pm2 start binary-file -- --port 1520
Thank you!
9
0
3.33
3
$ pm2 restart app_name
$ pm2 reload app_name
$ pm2 stop app_name
$ pm2 delete app_name
Thank you!
3
0
4
7
$ npm install pm2@latest -g
# or
$ yarn global add pm2
Thank you!
7
0
5
1
$ pm2 [list|ls|status]
Thank you!
1
0
3.8
10
# Monitoring CPU/Memory
pm2 monit
pm2 monitor
Make pm2 auto-boot at server restart:
pm2 startup
# Go To Server Directory Where you have store Express Files
pm2 start app.js -o "/dev/null" -e "/dev/null"
# Freeze your process list across server restart
3.pm2 save
# Auto restart apps on file change
4. pm2 start app.js --watch
# Remove init script via:
$ pm2 unstartup systemd
Thank you!
10
0
Are there any code examples left?
New code examples in category Other