首页 > 其他 > 详细

liunx关闭防火墙

时间:2017-01-05 01:12:04      阅读:210      评论:0      收藏:0      [点我收藏+]

Redirecting to /bin/systemctl stop iptables.service

systemctl stop iptables.service

 

??????

 

centos从7开始默认用的是firewalld,这个是基于iptables的,虽然有iptables的核心,但是iptables的服务是没安装的。所以你只要停止firewalld服务即可:sudo systemctl stop firewalld.service && sudo systemctl disable firewalld.service

如果你要改用iptables的话,需要安装iptables服务:
sudo yum install iptables-services
sudo systemctl enable iptables && sudo systemctl enable ip6tables
sudo systemctl start iptables && sudo systemctl start ip6tables

liunx关闭防火墙

原文:http://www.cnblogs.com/xinjie10001/p/6250693.html

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