安装firewalld防火墙
yum install firewalld
开启防火墙
systemctl start firewalld.service
关闭防火墙
systemctl stop firewalld.service
设置开机自动启动
systemctl enable firewalld.service
关闭开机自动启动
systemctl disable firewalld.service
查看防火墙状态
systemctl status firewalld
重载防火墙设置
firewall-cmd –reload
参考链接:
http://www.centoscn.com/CentOS/help/2017/0103/8392.html

本文介绍了如何在CentOS系统中安装、启动、关闭及管理firewalld防火墙的方法。包括使用yum进行安装、通过systemctl命令操作防火墙的开关状态、设置开机启动等常见操作。
1130

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



