我正在使用红帽企业Linux。我通过yum install httpd
安装了apache。当我执行curl localhost
时,它会对apache测试页面进行异常响应。但是,通过Web浏览器远程连接(键入IP地址)会导致Chrome中的网页不可用(ERR_CONNECTION_RESET)。这是netstat -ntlp
:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 700/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 930/master tcp6 0 0 :::80 :::* LISTEN 2010/httpd tcp6 0 0 :::22 :::* LISTEN 700/sshd tcp6 0 0 ::1:25 :::* LISTEN 930/master
这是iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
有什么想法吗?