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

北城余情 提交于 2019-12-05 05:33:05

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.

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