Hi I'm new on setting up a VPS and I was wondering how to run nodejs on the server because I used ssh and run the node and it runs without a problem but as soon as I close the terminal and refreshed the page it was disconnected.. so I was wondering if there is a way on how to run node automatically let say similar to cronjob or something? I found this Stackoverflow article but I'm not sure if this is what I'm looking for. Can someone enlighten me on this issue or give me some tips on how to do it..
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You want to run NodeJS as as service. This has already been addressed at StackOverflow: Node.js as a background service