简体   繁体   中英

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

I'm developing a node.js (SEAN.JS) app. 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.

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:

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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