ExpressJs — Using PM2 for Process Management
PM2 is a production process manager for Node.js applications that helps manage multiple instances, load balancing, logging, and auto-restarts.
npm install pm2 -g
# Start app with PM2
pm2 start index.js -i max
# Monitor app
pm2 logs
pm2 monit