欢迎查看我的第一篇博客
一分钟了解配置Centos7防火墙
CentOS7使用systemctl指令来管理系统的单一服务,在CentOS7中对于firewalld(防火墙)服务的开启、关闭、状态查询也同样是使用该指令
1.查看防火墙状态
[root@localhost ~]# systemctl status firewalld
2.开启防火墙
[root@localhost ~]# systemctl start firewalld
查看状态:systemctl status firewalld
3.关闭防火墙
[root@localhost ~]# systemctl stop firewalld
查看状态:
4.开机自启
[root@localhost ~]# systemctl enable firewalld
5.禁止开机自启
[root@localhost ~]# sydtemctl disable firewalld
6.查询防火墙是否开机自启
[root@localhost ~]# systemctl is-enabled firewalld
7.查询已经启动的服务列表
[root@localhost ~]# systemctl list-unit-files|grep enabled
8.查询启动失败的服务列表
[root@localhost ~]# systemctl --failed
谢谢观看,请支持我,一个在Linux路上努力的小白!
欢迎有兴趣的朋友加入运维群交流学习!!!
微信:zdqqbb