how to install a node.js server at chat.mydomain.com on a hostgator vps hosting?

﹥>﹥吖頭↗ 提交于 2019-12-01 03:24:56

问题


I have a hostgator VPS hosting account.

I already have a site at my main domain, say mydomain.com

now i want to install node.js server for chat.mydomain.com.

i need some help installing the node.js server.

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?

Thanks,
Anjan


回答1:


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.

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



来源:https://stackoverflow.com/questions/5742559/how-to-install-a-node-js-server-at-chat-mydomain-com-on-a-hostgator-vps-hosting

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