解决centos7中使用service iptables stop 显示Failed....not loaded

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

原博客链接:https://blog.csdn.net/peterxiaoq/article/details/72897231

发布了85 篇原创文章 · 获赞 200 · 访问量 31万+

猜你喜欢

转载自blog.csdn.net/l_liangkk/article/details/82891017
今日推荐