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

前端 未结 12 626
遇见更好的自我
遇见更好的自我 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:18

    In Linux, SSH into your remote server and run

    screen
    

    to launch into a new screen.

    Finally, type ctrlad to detach the screen session without killing the process.

    More info here.

提交回复
热议问题