firewall-cmd --state
如果命令返回是running,表示运行(默认设置);
如果命令返回是not running,表示未运行;
CentOS 7 停止防火墙服务命令:systemctl stop firewalld.serviceCentOS 7 禁止防火墙服务命令:
systemctl disable firewalld.service
如下图所示:

firewall-cmd --state
如果命令返回是running,表示运行(默认设置);
如果命令返回是not running,表示未运行;
CentOS 7 停止防火墙服务命令:systemctl stop firewalld.serviceCentOS 7 禁止防火墙服务命令:
systemctl disable firewalld.service
如下图所示: