Ubuntu 14.04 - pm2 startup not starting after reboot

前端 未结 5 1932
南旧
南旧 2021-01-02 13:04

I am using pm2 to start a node.js process, and I would like this process to be started automatically when the system (Ubuntu 14.04 on Intel Atom processor) is booted. I have

5条回答
  •  一整个雨季
    2021-01-02 13:34

    For pm2 startup to work, there's a critical command buried in documentation and here.

    You have to 1) start all your processes, 2) create the startup script, and 3) run pm2 save

    Reference to @lazlojuly's answer here.

提交回复
热议问题