Running Node from hostgator's vps

≡放荡痞女 提交于 2019-12-11 13:58: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..


回答1:


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



来源:https://stackoverflow.com/questions/25173147/running-node-from-hostgators-vps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!