pm2 start index.js —name app_name
pm2 save
pm2 startup(按照CLI提示復(fù)制相應(yīng)命令并執(zhí)行)
參考: https://pm2.io/doc/en/runtime/guide/startup-hook/#installation
pm2 start index.js —name app_name
pm2 save
pm2 startup(按照CLI提示復(fù)制相應(yīng)命令并執(zhí)行)
參考: https://pm2.io/doc/en/runtime/guide/startup-hook/#installation