I am trying to use the module pm2 to start my node js app everytime the server boots. I have used the command pm2 startup ubuntu but each time I restar
pm2
pm2 startup ubuntu
Go to your server directory and use the following commands:
pm2 start pm2 startup ubuntu pm2 save