Centos7防火墙查看启动状态、开启、关闭,开机自启动的查看、开启、关闭。

1、  先查看是否启动,开启和关闭防火墙

firewall-cmd –state

systemctl start firewalld.service

systemctl stop firewalld.service

如何关闭和开启Centos7防火墙_Centos7防火墙查看启动状态

2、 查看自启动的服务,左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动。

systemctl list-unit-files

如何关闭和开启Centos7防火墙_Centos7防火墙查看启动状态_02

3、  添加开机自启动

systemctl list-unit-files | grep firewalld

systemctl disable firewalld.service

systemctl enable firewalld.service

如何关闭和开启Centos7防火墙_Centos7防火墙查看启动状态_03

4、  防火墙iptables的配置文件

如何关闭和开启Centos7防火墙_Centos7防火墙查看启动状态_04

点击这里:网络架构图/系统架构图/应用架构图/基础组件架构图/网络安全/共有云/产品经理等等拓扑图。

希望能帮到你。如喜欢,麻烦点个”赞“,创作不易,感谢支持!