/ etc / init.d / iptables: line 268: restorecon: command not found

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 found iptables: Saving firewall rules to / etc/sysconfig/iptables: / etc / init.d / iptables: line 268: restorecon: command not found”

Fix :

yum install policycoreutils

时间: 2024-10-10 21:29:37

/ etc / init.d / iptables: line 268: restorecon: command not found的相关文章

/etc/rc.d/init.d/iptables: No such file or directory 错误原因

注:本文转载自cnblogs:一天学点的文章</etc/rc.d/init.d/iptables: No such file or directory 错误原因> RedHat Enterprise Linux 7关闭防火墙方法 在之前的版本中关闭防火墙等服务的命令是 1 service iptables stop 2 3 /etc/init.d/iptables stop 在RHEL7中,其实没有这个服务 1 [[email protected] ~]# cat /etc/redhat-re

vmware安装minimal centos报错/etc/rc5.d/s99local : line:25 : eject : command not found

今天在用centos mini 版的时候创建虚拟机出现错误提示:vmware安装minimal centos报错/etc/rc5.d/s99local : line:25 : eject : command not found 解决办法:先创建虚拟机后再添加centos ios 可以参照: http://www.dabu.info/vmware-install-minimal-centos-rc5-line25-eject-command-not-found.html

line 1: Dump: command not found

最近做一个实验,要监控oracle的alert日志,脚本写好后发现执行报如下错误,但结果可以正常输出  [[email protected] ~]# sh  tt.sh  /root/alert: line 1: Dump: command not found /root/alert: line 2: Fri: command not found /root/alert: line 3: ORACLE: command not found /root/alert: line 5: Windows

/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line 19: mysql: command not found

[[email protected] ~]# tail -f /tmp/zabbix_agentd.log /var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line 19: mysql: command not foundvi /var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line RES=`/usr/local/mysql/bin/mysql -ur

libtool: line 990: g++: command not found的解决

apache 需要apr,编译中间的时候出现libtool: line 990: g++: command not found ,执行yum -y install gcc+ gcc-c++编译重新安装gcc就ok了

libtool: line 8986: gcc: command not found

有时,我在执行 `sudo make install` 安装的时候会出现如题的错误提示: "libtool: line 8986: gcc: command not found" 并不是 gcc 没有,我通过 `which gcc` 命令查得是有结果的: /usr/local/bin/gcc 明明有 gcc,但为什么总是这样? 这是 PATH 的问题,由于我们执行的命令是: sudo make install 是切换到 root 用户下去执行的,而 root 用户下的 PATH 与当前

安装mysql 开启服务时出错/etc/init.d/mysqld: line 264: 的解决办法

安装mysql 开启服务时,出错/etc/init.d/mysqld: line 264: cd: mysql-5.5.60: No such file or directory解决办法https://blog.51cto.com/genxin/1783419 basedir 设置正确后,又出现,错误[[email protected] ~]# service mysqld startStarting MySQL.Logging to '/usr/local/mysql-5.5.60/local

./zkcli.sh: line 13: unzip: command not found

异常信息: Error: Could not find or load main class org.apache.solr.cloud.ZkCLI 异常原因: 想执行 solrhome 配置文件上传命令: ./zkcli.sh -zkhost 192.168.0.1:218 -cmd upconfig -confdir /usr/local/solr-cloud/solrhome01/collection1/conf/ -confname myconf 但是系统没有安装 unzip 和 zip

OpenVPN+ldap整合验证

一.服务端的安装与配置 安装基本模块 1.检查OpenVPN所需环境 (1)OpenVPN需要TUN设备支持 modinfo tun 如果报错则不支持TUN设备. (2)需要iptables的nat模块支持 检查iptables 模块, 查看是否有/etc/init.d/iptables文件. (3)需要policycoreutils软件包支持iptables save功能 不安装会在iptables save时报错:iptables: Saving firewall rules to /etc