CentOS 7关闭系统默认防火墙

发布时间:2018年4月5日 阅读:569095次 分类:Linux基础 暂无评论

CentOS 7开始默认使用的是firewall作为防火墙,并非iptables。


一、检查防火墙是否运行


firewall-cmd --state

SSH执行以上命令,若提示 running 则表示正在运行,not running表示没有运行。


二、关闭防火墙


systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall开机启动

SSH执行以上命令,关闭防火墙并取消开机自动启动。

标签: CentOS, firewall

添加新评论 »




captcha
请输入验证码