如何在hostgator vps主机上的chat.mydomain.com上安装node.js服务器? [英] how to install a node.js server at chat.mydomain.com on a hostgator vps hosting?
问题描述
我有一个hostgator VPS托管帐户.
I have a hostgator VPS hosting account.
我已经在我的主域中拥有一个网站,例如mydomain.com
I already have a site at my main domain, say mydomain.com
现在我想为chat.mydomain.com安装node.js服务器.
now i want to install node.js server for chat.mydomain.com.
我需要一些帮助来安装node.js服务器.
i need some help installing the node.js server.
我要寻找的是,如何设置node.js服务器?-我可以下载并安装节点v 0.4.6,但如何使其像Apache一样监听端口,如chat.mydomain.com:8088?那就是将节点"安装为服务,并像 apache 监听 80 端口一样监听 8088 端口?
what i m looking for is, How to setup the node.js server? - I can download and install the node v 0.4.6 but how to make it listen to a port say chat.mydomain.com:8088 like apache? That is install the "node" as a service and listen to port 8088 like apache listens to port 80?
谢谢,
安詹
推荐答案
您所需要做的就是打开一个端口以侦听请求,例如如果要在8088上运行Node,然后通过chat.mydomain.com访问它.
All you need to is to open up a port to listen to requests e.g. if you want to run Node on 8088 and then access it with chat.mydomain.com.
根据他们的支持,您需要与他们联系以为您打开8088> http://support.hostgator.com/articles/pre-sales-policies/open-new-ports
According to their support, you need to contact them to open up 8088 for you > http://support.hostgator.com/articles/pre-sales-policies/open-new-ports
这篇关于如何在hostgator vps主机上的chat.mydomain.com上安装node.js服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!