CentOS 7.0默认使用的是firewall作为防火墙
查看防火墙状态
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service
![](https://img2018.cnblogs.com/blog/491485/201909/491485-20190910161046102-214450597.png)
CentOS 7.0默认使用的是firewall作为防火墙
查看防火墙状态
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service
![](https://img2018.cnblogs.com/blog/491485/201909/491485-20190910161046102-214450597.png)