1:查看防火墙状态
systemctl statu firewalld
此状态表示防火墙禁用状态

此状态表示防火墙处于开启状态

2:暂时关闭防火墙
systemctl stop firewalld
3:启用防火墙(关闭状态使用)
systemctl start firewalld
4:重启防火墙(输入命令后防火墙先关闭再启用)
systemctl restart firewalld
5:永久禁用防火墙(设置开机不自启动)
systemctl disable firewalld
6:开机自动启用防火墙
systemctl enable firewalld
这篇文章介绍了如何使用systemctl命令来管理Linux系统的防火墙状态,包括查看防火墙是否开启、临时关闭、启用、重启以及设置防火墙在开机时的自启动状态。
2538

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



