一、查看防火墙状态:
1.通过服务查看防火墙状态:
systemctl status firewalld
防火墙运行时: 防火墙关闭时:
2.查看防火墙所有的规则详情:
firewall-cmd --list-all
防火墙运行时:
防火墙关闭时:
二、关闭防火墙
systemctl stop firewalld
三、禁止防火墙开机自启动
systemctl disable firewalld.service
2022-06-14 02:37:41
systemctl status firewalld
防火墙运行时: 防火墙关闭时:
firewall-cmd --list-all
防火墙运行时:
防火墙关闭时:
systemctl stop firewalld
systemctl disable firewalld.service