`

解决 Linux 安装 httpd局域网无法访问

 
阅读更多

 

yum install httpd

 

局域网无法访问,但本机是好的。

 

vim /etc/httpd/conf/httpd.conf

Allow from all 也是正常的。

 

折腾了1个小时,原来是防火墙关了。

vim /etc/sysconfig/iptables

 

添加

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

 

重启防火墙

service iptables restart

当然,也可以这样重启:

/etc/rc.d/init.d/iptables restart

 

保存退出即可

 

 

分享到:
评论
1 楼 Navee 2013-06-13  
果然
我这也是是防火墙问题

相关推荐

Global site tag (gtag.js) - Google Analytics