这个错误提示表明 iptables 服务并没有被加载到 systemd 中,因此无法进行停止操作。可能的原因包括:

  1. iptables 服务没有被正确安装或配置。

  2. iptables 服务的文件名不是 'iptables.service',而是其他名字。

  3. iptables 服务的文件路径不在 systemd 的服务路径中。

你可以使用命令 'systemctl list-units --type=service' 来列出所有系统服务,看看 iptables 是否在其中。如果没有,你需要检查 iptables 服务的安装和配置,确保它符合 systemd 的要求。如果 iptables 服务确实存在,但没有被加载到 systemd 中,你可以尝试手动加载它,使用命令 'systemctl enable iptables.service',然后再尝试停止它。

解决 'systemctl daemon-reload' 后无法停止 iptables 服务的问题

原文地址: https://www.cveoy.top/t/topic/odkU 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录