简体   繁体   English

无法在Ubuntu 12.04上加载Node.js应用-无法访问此站点

[英]Node.js app not loading on Ubuntu 12.04 - this site cant be reached

I'm developing a node.js (SEAN.JS) app. 我正在开发一个node.js(SEAN.JS)应用程序。 On my local machine the app works normal at localhost:3000, After I run grunt, But on my server (Ubuntu 12.04 - angular.pling.cc:3000) it doesnt. 在我的本地计算机上,该应用程序在localhost:3000上正常运行,运行grunt之后,但是在我的服务器上(Ubuntu 12.04-angular.pling.cc:3000)却没有。

The error I'm recieving is: 我收到的错误是:

"This site can't be reached. angular.pling.cc took too long to respond."

Any help would be much appreciated. 任何帮助将非常感激。

solved. 解决了。 i redirected port 80 to 3000 with this command: 我使用以下命令将端口80重定向到3000:

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000

as suggested here: Best practices when running Node.js with port 80 (Ubuntu / Linode) 如此处建议: 使用端口80(Ubuntu / Linode)运行Node.js时的最佳做法

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

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