PM2 is a process manager for node.js Quickstart https://pm2.keymetrics.io/docs/usage/quick-start/ Install sudo npm install -g pm2 install globally Commands sudo pm2 start server.js run app sudo pm2 start server.js --watch start and watch for file changes, then restart automatically pm2 start "npm run start" --name myAppName --watch start via npm in watch mode pm2 status get status pm2 restart server.js restart pm2 stop server.js stop pm2 delete id delete pm2 logs get logs pm2 flush clean logs pm2 startup app goes back again if server reboots pm2 save - may be need to save before pm2 kill