centos7 关闭防护墙

centos6 里面的默认防火墙 是 iptables,

所有 使用 service iptables stop 就可以停止防火墙了。

但是 centos7 里面的 防火墙 叫做 firewalld

所以使用 service firewall stop 可以停止。

但是 现在 已经 建议使用 systemctl 命令代替 service 命令了。

停止使用: systemctl stop firewalld 停用 。

禁止开机启动 :systemctl distable firewalld