首页 > 其他 > 详细

centos7 关闭 防火墙

时间:2019-01-24 14:03:17      阅读:150      评论:0      收藏:0      [点我收藏+]

CentOS 7 默认使用的是firewall作为防火墙

关闭firewall:

systemctl stop firewalld.service  #停止firewall

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

systemctl restart iptables.service #最后重启防火墙使配置生效

systemctl enable iptables.service #设置防火墙开机启动

firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)

centos7 关闭 防火墙

原文:https://www.cnblogs.com/jtlgb/p/10313973.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!