CentOS 7 执行service iptables start出现redirecting to systemctl ...Failed to ...not loaded.
如果出现以下错误,好像说的是 版本高了,需要采用其他方式了
systemctl restart.service
其注意一下;systemctl restart.service 需要进行安装
知识来源于:https://www.jianshu.com/p/de069a89c4b8
1. 使用systemctl
systemctl [start|stop|restart|save|status] iptables.service
2. 安装iptables-services
切换到root用户下,执行:
yum install iptables-services
systemctl enable iptables.service //设置开机启动
之后就可以使用以下指令了:
service iptables [start|stop|restart|save|status]
作者:adXiang
链接:https://www.jianshu.com/p/de069a89c4b8
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。