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

在关闭防火墙到时候,出现:


   
   
   
   
  1. Redirecting to /bin/systemctl stop iptables.service
  2. Failed to stop iptables.service: Unit iptables.service not loaded.

解决方法:

yum install iptables-services

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

systemctl stop firewalld

你可能感兴趣的:(linux)