{"componentChunkName":"component---src-templates-blog-post-js","path":"/queries/2021-01-06-pm2-server-restart-on-reboot-windows/","result":{"data":{"markdownRemark":{"id":"55e112a6-7bc7-5447-b813-de62e41cc1c8","html":"<p>First install.</p>\n<p><code>npm install -g pm2-windows-service</code></p>\n<p>Refer here. Solution 2 worked for me ->\n<a href=\"https://blog.cloudboost.io/nodejs-pm2-startup-on-windows-db0906328d75\">https://blog.cloudboost.io/nodejs-pm2-startup-on-windows-db0906328d75</a></p>","frontmatter":{"date":"January 06, 2021","title":"PM2 server restart on reboot [Windows]","description":"How to restart a pm2 app when system is restarted.","tags":["pm2","windows-restart-pm2","node","windows"]}}},"pageContext":{"id":"55e112a6-7bc7-5447-b813-de62e41cc1c8"}},"staticQueryHashes":["4080856488"]}