当前位置:   article > 正文

Fix “Unit iptables.service failed to load: No such file or directory” Error In CentOS7_centos 开机提示fail to load rescue target:no such file

centos 开机提示fail to load rescue target:no such file or directory

CentOS7遇到问题

systemctl restart iptables.service
Failed to issue method call: Unit iptables.service failed to load: No such file or directory.
iptables-failThis simple means you do not have iptables-services package installed.

解决

yum install iptables-services

Re-run command to restart iptables and it should pass successfully.

systemctl restart iptables.service
iptables_passed

另外CentOS7 的默认防火墙是firewalld

systemctl disable firewalld.service#禁止firewall开机启动

然后

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

闽ICP备14008679号