赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。