Readhat 7.x禁用防火墙

Redhat 7.x

查看防火墙状态。

systemctl status firewalld

临时关闭防火墙命令。重启电脑后,防火墙自动起来。

systemctl stop firewalld

永久关闭防火墙命令。重启后,防火墙不会自动启动。

 systemctl disable firewalld

打开防火墙命令。

systemctl enable firewalld

 

Redhat 6.x

service iptables stop

chkconfig iptables off

posted @ 2017-02-21 18:17  boowii  阅读(423)  评论(0编辑  收藏  举报