如何关闭和开启Centos7防火墙
1、首先查看防火墙的启动状态,显示是:not running,是关闭的状态,开启和关闭防火墙firewall-艘早祓胂cmd –statesystemctl start firewalld.servicesystemctl stop firewalld.service

3、前面为临时打开关闭防火墙,reboot重启电脑后又会恢复成开启的状态,如果是想重启后防火墙还是处于关闭的状态,就可以使用命令。disable是开启不启动,enable是开启自启动。system艘早祓胂ctl list-unit-files | grep firewalldsystemctl disable firewalld.servicesystemctl enable firewalld.service
