CentOS7中防火墙简单命令
-
查看防火墙状态
firewall-cmd --staterunning 运行状态
not running 关闭状态 -
开启防火墙
systemctl start firewalld.service -
关闭防火墙
systemctl stop firewalld.service -
禁止开机启动防火墙
systemctl disable firewalld.service
CentOS7中防火墙简单命令
查看防火墙状态
firewall-cmd --state
running 运行状态
not running 关闭状态
开启防火墙
systemctl start firewalld.service
关闭防火墙
systemctl stop firewalld.service
禁止开机启动防火墙
systemctl disable firewalld.service