Answers for "pm2"

5

install pm2

npm install pm2 -g
Posted by: Guest on June-02-2020
1

pm2 install

$ npm install pm2@latest -g
# or
$ yarn global add pm2
Posted by: Guest on August-16-2020
1

pm2 install

$ pm2 [list|ls|status]
Posted by: Guest on August-16-2020
0

pm2 install

$ pm2 restart app_name
$ pm2 reload app_name
$ pm2 stop app_name
$ pm2 delete app_name
Posted by: Guest on August-16-2020
0

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
Posted by: Guest on June-04-2021
0

pm2

// To start npm with pm2 for nextjs just type
pm2 start npm --name "APP_NAME" -- start
Posted by: Guest on September-15-2021

Browse Popular Code Answers by Language