centos配置了apache但是通过ip无法访问

luofx623600186 2013-06-27 03:41:02
[root@SNDA-172-17-11-1 ~]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
Chain FORWARD (policy ACCEPT)
num target prot opt source destination

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

[root@SNDA-172-17-11-1 ~]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 30300/snmpd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 24784/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 30070/sshd
tcp 0 0 :::80 :::* LISTEN 27467/httpd
tcp 0 0 :::22 :::* LISTEN 30070/sshd
我用wget http://127.0.0.1/index.html可以get下来,我用putty登陆配置的。我把防火墙service iptables stop 掉了,也还是不能访问,各位看看什么问题,愁死我了
...全文
673 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
KK3K2005 2013-08-07
  • 打赏
  • 举报
回复
配置文件怎么设置的网站 另外所谓不能访问的详细反馈是什么
街头小贩 2013-08-06
  • 打赏
  • 举报
回复
重启网络服务试试
jongsuny 2013-08-06
  • 打赏
  • 举报
回复
这种就先看accesslog,还有就是errorLog,看是什么原因导致的。
tivenwang 2013-08-02
  • 打赏
  • 举报
回复
楼主解决了么? 我的glassfish也出这样的问题了

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧