从hostgator的vps运行节点 [英] Running Node from hostgator's vps

查看:28
本文介绍了从hostgator的vps运行节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是设置 VPS 的新手,我想知道如何在服务器上运行 nodejs,因为我使用 ssh 并运行节点,它运行没有问题,但是一旦我关闭终端并刷新页面它已断开连接..所以我想知道是否有办法自动运行节点让我们说类似于 cronjob 之类的?我发现了这个 Stackoverflow 文章 但我不确定这是否是我要找的.有人可以在这个问题上启发我或给我一些关于如何做的提示..

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

推荐答案

您希望将 NodeJS 作为服务运行.这已经在 StackOverflow 上解决了:Node.js 作为后台服务

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

这篇关于从hostgator的vps运行节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆