查看防火墙状态 :
firewall-cmd --state
running:为运行
关闭防火墙:
systemctl stop firewalld.service
禁用防火墙(永久关闭):
systemctl disable firewalld.service
reboot -f 重启
本文介绍了如何在Linux系统中查看防火墙状态,以及如何临时关闭和永久禁用firewalld服务。通过运行'firewall-cmd --state'可以检查防火墙是否正在运行。要临时关闭防火墙,使用'systemctl stop firewalld.service',而要永久禁用,需执行'systemctldisable firewalld.service',然后重启系统。
查看防火墙状态 :
firewall-cmd --state
running:为运行
关闭防火墙:
systemctl stop firewalld.service
禁用防火墙(永久关闭):
systemctl disable firewalld.service
reboot -f 重启

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