一、查看当前防火墙的状态
systemctl status firewalld

二、关闭防火墙
systemctl stop firewalld
三、禁用防火墙
systemctl disable firewalld

本文介绍了如何使用systemctl命令来检查Linux系统中firewalld防火墙的状态,以及如何进行关闭和禁用的操作。通过运行systemctlstatusfirewalld可以查看防火墙状态,执行systemctlstopfirewalld来暂时关闭,而systemctldisablefirewalld则会禁止防火墙在启动时自动启动。
systemctl status firewalld

systemctl stop firewalld

systemctl disable firewalld

2万+
1764

被折叠的 条评论
为什么被折叠?