查看防火墙状态:
systemctl status firewalld.service
执行关闭命令:
systemctl stop firewalld.service
再次执行查看防火墙命令:
systemctl status firewalld.service
禁用防火墙开机自启命令 :
systemctl disable firewalld.service
图示如下:
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210401123241102.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3NoaWppbjc0MTIzMQ==,size_16,color_FFFFFF,t_70)
防火墙启动:
systemctl start firewalld.service
防火墙随系统开启启动 :
systemctl enable firewalld.service