如果出现这个错误,解决方法如下:

When I tried to restart iptables from vps , I got the following error.
Iptables encountered such a problem to save the iptables rules:

“iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 268: restorecon: command not foundiptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/ init.d/iptables: line 268: restorecon: command not found”

解决方法:

yum install policycoreutils

标签: none

添加新评论