项目场景:

centos7关闭防火墙出现:

Failed to stop iptables.service: Unit iptables.service not loaded.

问题描述:

centos7执行:service iptables stops关闭防火墙时出现:
Redirecting to /bin/systemctl stop iptables.service
Failed to stop iptables.service: Unit iptables.service not loaded.

解决方法:

yum install iptables-services

实际上,centos7后是使用的基于iptable的systemctl stop firewalld

systemctl stop firewalld
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐