CentOS 6.8 关闭防火墙


在搭建LAMP环境之后,发现无法访问站点,所以查看了服务器防火墙,发现果然是防火墙的问题,下面是关闭防火墙的方法
1.查看防火墙状态

service iptables status

2.关闭防火墙

service iptables stop

当然,你也可以永久关闭,
3.永久关闭防火墙

chkconfig iptables off
posted @ 2019-05-04 09:57  江寻  阅读(1113)  评论(0)    收藏  举报