centos7怎么查看防火墙状态
更新:HHH   时间:2023-1-7


本篇内容介绍了“centos7怎么查看防火墙状态”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

查看防火墙开启状态

[root@localhost scripts]# firewall-cmd --state
not running

查看开启服务:

[root@localhost conf.d]# systemctl list-unit-files |grep enabled
auditd.service                                enabled 
autovt@.service                               enabled 
crond.service                                 enabled

查看要关闭的防火墙服务

[root@localhost conf.d]# systemctl list-unit-files |grep firewalld
firewalld.service                             disabled

disabled 是关闭,如果开启,请关闭

systemctl disable firewalld

防火墙开关机

启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld 
开机禁用  : systemctl disable firewalld
开机启用  : systemctl enable firewalld

“centos7怎么查看防火墙状态”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注天达云网站,小编将为大家输出更多高质量的实用文章!

返回系统运维教程...