开发者

What do I need to run a node.js script on my server?

I h开发者_JS百科ave a standard Apache server. Do I need anything special to run a node.js script (http://socket.io/) on the serverside?


Node.js provides its own HTTP server, thus making Apache unnecessary.

If you wish to run Apache and Node.js on the same server, either set node to listen to port 80 and forward unhandled requests to Apache, or vice versa

In both instances, Node/Apache will listen to the publicly open port 80, and forward to Apache/Node listening on some non-public port.


You will need shell access to start the node.js server. So it most likely won't work on shared hosting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜