Make PM2 automatically startup on Windows environment

Normally, pm2 have a default startup feature that very easy to use but that one is working only with Linux and Mac OS versions. So, if you are trying to use pm2 startup in Windows environment, you need to install the pm2-windows-startup utility to make it automatically.

Installation
npm install pm2-windows-startup -g
pm2-startup install

And now, PM2 will now automatically refresh the saved processes on startup. To save the current processes need to execute the below command in common prompt.
pm2 save

That’s it. I hope this will help. 🙂
Source: https://www.npmjs.com/package/pm2-windows-startup
Photo: https://www.brandeps.com

Leave a Reply

Your email address will not be published. Required fields are marked *