Skip to content

Automatic Restart on System Reboot With PM2

View on Twitter

💡 Using PM2 with Node.js?

👉🏼 Your app won't start automatically when the system reboots unless you configure PM2 to run as a daemon service:

1. ➡️ pm2 startup
2. Run the command printed out
3. Start your Node.js app(s)
4. ➡️ pm2 save

https://pm2.keymetrics.io/docs/usage/startup/

Download the VPS Security Cheatsheet

Use this FREE security cheatsheet to not miss a step when securing your VPS.

A preview of the VPS Security Cheatsheet.

You'll also get tips on building scalable Node.js applications about twice a month. I respect your email privacy. Unsubscribe any time.

You might also like
Get Process Environment From Terminal Read tip
Public URLs for Your Local Server Read tip
Quickly Get JavaScript Event Keycode Read tip