How to run node.js app forever when console is closed?

前端 未结 12 650
遇见更好的自我
遇见更好的自我 2020-12-12 09:38

I connect to my remote server via ssh. Then I start my node.js app with Forever. Everything works fine until I close my console window. How to run node.js app FOREVER on my

12条回答
  •  渐次进展
    2020-12-12 10:08

    Always, simple is the best, no need upstart, no need forever, just nohup:

    nohup node file.js &

    Believe me, I'm running so that for my case!

提交回复
热议问题