当前位置:   article > 正文

centos 7解决service iptables save报错

service iptables save

The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.

1.首先停止防火墙

systemctl stop firewalld

 

systemctl mask firewalld   注销防火墙服务

 2.安装iptables-services

yum install iptables-services

3.设置开机启动防火墙

systemctl enable iptables

4.使用如下命令管理iptables

systemctl stop|start|restart iptables

5.保存防火墙规则了

service iptables save

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/888661
推荐阅读
相关标签
  

闽ICP备14008679号