step1: pm2 start npm --name “projectName” – run start
step2: pm2 save It will show as follow: [PM2] Saving current process list… [PM2] Successfully saved in /root/.pm2/dump.pm2
step3: pm2 startup
京公网安备 11010502049817号