Install and Start
npm install -g pm2
pm2 start app.js --name myapp -i max
pm2 save && pm2 startup
💡 Cluster mode auto-balances load across CPU cores and restarts crashed instances.
npm install -g pm2
pm2 start app.js --name myapp -i max
pm2 save && pm2 startup