我需要做什么我的服务器上运行的node.js脚本? [英] What do I need to run a node.js script on my server?

查看:179
本文介绍了我需要做什么我的服务器上运行的node.js脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个标准的Apache服务器。我是否需要任何特殊的运行在服务器端的一个Node.js的脚本(http://socket.io/)?

I have a standard Apache server. Do I need anything special to run a node.js script (http://socket.io/) on the serverside?

推荐答案

Node.js的提供了自己的HTTP服务器,从而使阿帕奇不必要的。

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

如果你想在同一台服务器上运行的Apache和Node.js的,无论是设置节点侦听端口80和前进未处理请求来了Apache,或反之亦然

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

在这两种情况下,节点/ Apache将听取公众开放80端口,并转发到Apache /节点的一些非公开的端口上监听。

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

这篇关于我需要做什么我的服务器上运行的node.js脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆