centos7如何关闭防火墙

1.centos7自带了firewall,而不是iptables:

  关闭firewall:

service firewalld stop

  或者:

systemctl stop firewalld

  禁止firewall:

systemctl mask firewalld

  下面是替换成iptables操作:

yum -y install iptables-services

  开机启动:

systemctl enable iptables

  启动iptables:

systemctl start iptables

that'it...

posted @ 2016-10-22 12:36  但行好事-莫问前程  阅读(469)  评论(0编辑  收藏  举报