一、CentOS 7
1、查看防火墙状态:firewall-cmd --state
2、关闭防火墙:systemctl stop firewalld.service
3、开启防火墙: systemctl start firewalld.service
一、CentOS 7
1、查看防火墙状态:firewall-cmd --state
2、关闭防火墙:systemctl stop firewalld.service
3、开启防火墙: systemctl start firewalld.service