Running Node from hostgator's vps

2019-08-11 06:24发布

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..

标签: node.js vps
1条回答
来,给爷笑一个
2楼-- · 2019-08-11 07:14

You want to run NodeJS as as service. This has already been addressed at StackOverflow: Node.js as a background service

查看更多
登录 后发表回答