Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

pm2

# 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
Source by pm2.keymetrics.io #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+7 =