centos 关闭防火墙

systemctl stop firewalld.service            #停止firewall

systemctl disable firewalld.service        #禁止firewall开机启动

systemctl start firewalld  #启动 firewall

 firewall-cmd --state   #查看状态

原文地址:https://www.cnblogs.com/binz/p/12887611.html