Systemd node app failing to start

后端 未结 2 702
醉酒成梦
醉酒成梦 2021-01-29 00:34

I have a node app, that I\'m trying to add as a service, the app works fine if I go to the directory where it\'s installed and do node start.js however when I do

2条回答
  •  花落未央
    2021-01-29 01:07

    I had this problem. I wasn't using the same node version in systemd

    $ which node
    /usr/local/bin/node
    

    Replacing /usr/bin/node with /usr/local/bin/node in ExecStart fixed it for me.

提交回复
热议问题