CentOS7 默认使用的是firewall作为防火墙
查看防火墙状态
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
开启firewall
firewall-cmd --state
禁止firewall 开机启动
systemctl disable firewalld.service
本文介绍在CentOS7中如何使用firewall作为防火墙进行基本操作,包括查看防火墙状态、停止、开启及禁止开机启动的方法。
CentOS7 默认使用的是firewall作为防火墙
查看防火墙状态
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
开启firewall
firewall-cmd --state
禁止firewall 开机启动
systemctl disable firewalld.service
转载于:https://www.cnblogs.com/tim-eff/p/10797158.html
1万+
452

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