# 查看防火墙状态
systemctl status firewalld
# 关闭防火墙
systemctl stop firewalld
# 启动防火墙
systemctl start firewalld
#禁止防火墙开机启动
systemctl disable firewalld.service
Linux关闭重启防火墙
于 2023-03-28 09:13:41 首次发布
这篇文章介绍了如何使用systemctl命令来管理Linux系统的防火墙。首先,可以通过systemctlstatusfirewalld检查防火墙的状态。接着,可以使用systemctlstopfirewalld来关闭防火墙,systemctlstartfirewalld启动它。最后,若要禁止防火墙在系统启动时自动运行,应执行systemctldisablefirewalld.service。
摘要由CSDN通过智能技术生成