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