Common Node.js PM2 Monitoring Commands

pm2 show app # Display all application information

pm2 -h # View pm2 help info, displaying command usage

pm2 list # List all projects

pm2 stop app # Stop the application service

pm2 restart app # Restart the application service

pm2 delete app # Remove the application from the process list

pm2 status # Check status

pm2 monit # Monitor CPU and memory usage

Leave a Comment

Your email address will not be published.