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

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
How To Ask For Help Read tip
A Better Minimum Compression Size in Nginx Read tip
Quickly Test Glob Patterns Read tip