在搭建LAMP环境之后,发现无法访问站点,所以查看了服务器防火墙,发现果然是防火墙的问题,下面是关闭防火墙的方法 1.查看防火墙状态
service iptables status
2.关闭防火墙
service iptables stop
当然,你也可以永久关闭, 3.永久关闭防火墙
chkconfig iptables off