简体   繁体   English

Node.js www Mac OS X服务器

[英]Nodejs www mac os x server

I'm trying to get node.js to work on a mac os x server. 我正在尝试让node.js在Mac OS X服务器上工作。 Using the server app, here I've set example.com to listen to all ip's on port 80 and read from a folder, example.com has an A record pointing to my static ip for the server. 使用服务器应用程序,在这里我将example.com设置为侦听端口80上的所有ip并从文件夹中读取,example.com的A记录指向服务器的静态ip。 This works fine for apache. 这对Apache很好用。

I've set node.js to listen to port 8080 on my local ip, but when I go to example.com:8080 I get 404. 我已将node.js设置为侦听本地ip上的端口8080,但是当我转到example.com:8080时,我得到404。

}).listen(8080, '10.100.100.15');

Apache is also listening on that ip, but only on port 80 as far as I know. 据我所知,Apache也在该IP上进行监听,但仅在端口80上进行监听。 Any thoughts, links and such appreciated. 任何想法,链接和赞赏。

路由器缺少8080的转发器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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