node.js - 无法访问CentOS上的站点
ringa_lee
ringa_lee 2017-04-17 14:44:03
0
3
559

在CentOS上用node, express部署了一个站点,在服务器上直接执行curl http://域名:端口 是可以返回页面代码的,但是在浏览器里一直是无法访问。求指导。。

ringa_lee
ringa_lee

ringa_lee

reply all(3)
迷茫

What error does the browser return?

Peter_Zhu

Could you please tell me your domain name and port? Can it be accessed from the outside? ?
What error did the browser report?

No information?

90% of your problem is caused by the network firewall and lack of permissions.

www.huilvpaijia.com:3000

You are such a domain name. .

You may have many,

For example, the DNS resolution is incorrect,

Resolve to other http services on your server

Looking at the request, it is typical that there is no service response. You can directly give the ip

Peter_Zhu

Firewall configuration issue, CentOS only allows external SSH connections by default.
RH series has a relatively complete firewall configuration tool. It is not recommended to modify Iptables by yourself.
Use system-config-firewall or system-config-firewall-tui to configure it. If not, use yum to install it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template