[英]localhost this site cant be reached after writing to a file, with node.js
[英]Node.js app not loading on Ubuntu 12.04 - this site cant be reached
我正在开发一个node.js(SEAN.JS)应用程序。 在我的本地计算机上,该应用程序在localhost:3000上正常运行,运行grunt之后,但是在我的服务器上(Ubuntu 12.04-angular.pling.cc:3000)却没有。
我收到的错误是:
"This site can't be reached. angular.pling.cc took too long to respond."
任何帮助将非常感激。
解决了。 我使用以下命令将端口80重定向到3000:
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.