简体   繁体   中英

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

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

All you need to is to open up a port to listen to requests eg 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM