解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load

防火墙配置后执行service iptables save 出现"Failed to restart iptables.service: Unit iptables.service failed to load: No such file or directory."错误,在CentOS 7或RHEL 7或Fedora中防火墙由firewalld来管理,当然你可以还原传统的管理方式。或则使用新的命令进行管理。

假如采用传统请执行一下命令:

systemctl stop firewalld

systemctl mask firewalld

并且安装iptables-services:

yum install iptables-services

设置开机启动:

systemctl enable iptables

systemctl [stop|start|restart|reload] iptables(分开执行)

保存设置:

service iptables save 或者 /usr/libexec/iptables/iptables.init save

时间: 2024-10-10 01:01:43

解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load的相关文章

CentOS 7 防火墙 出现Failed to start iptables.service: Unit iptables.service failed to load

错误信息如下: [root]# service iptables start Redirecting to /bin/systemctl start iptables.service Failed to start iptables.service: Unit iptables.service failed to load: No such file or directory.解决方法如下: 一直用CentOS 6 习惯了,一下没适应过来.防火墙配置后执行service iptables sav

CentOS 7告iptables防火墙提示Unit iptables.service failed to load

使用CentOS 7时发现使用iptables防火墙时提示错误Unit iptables.service failed to load,意思是防火墙运行启动失败了,那么要如何处理呢. 一直用CentOS 6 习惯了,一下没适应过来.防火墙配置后执行service iptables save 出现"Failed to restart iptables.service: Unit iptables.service failed to load: No such file or directory.&

Failed to issue method call: Unit mysql.service failed to load: No such file or directory的解决办法

Failed to issue method call: Unit mysql.service failed to load: No such file or directory的解决办法 作者:chszs,转载需注明.博客主页:http://blog.csdn.net/chszs 1.软件环境: OpenSUSE 13.1 x64 MySQL 5.6.20 x64 2.采用RPM包安装MySQL 5.6.20 # rpm -ivh MySQL-server-5.6.20-1.sles11.x8

Failed to issue method call: Unit mysql.service failed to load: No such file or directory解决的方式

Failed to issue method call: Unit mysql.service failed to load: No such file or directory解决的方式 作者:chszs.转载需注明.博客主页:http://blog.csdn.net/chszs 1.软件环境: OpenSUSE 13.1 x64 MySQL 5.6.20 x64 2.採用RPM包安装MySQL 5.6.20 # rpm -ivh MySQL-server-5.6.20-1.sles11.x8

Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.

可能的原因: 1.http://blog.sina.com.cn/s/blog_4692ea0a0101jqhz.html 2.http://diag.5ustore.com/proxy/index.php?url=1J1h12y31F1b1918yLyByU1FyNyjyD101z1612yo1C1cyc1sy3yc1yyN161611yY0RyiyiyJyY1hymylyj1hyL1gyS1LyWyR1Myhyk0VyMylyvyg0j1j1D1F1k18171r1P1HyuyI1DyNyB

centos 报错 “Job for iptables.service failed because the control process exited with error code.”的解决办法

原因:因为centos7默认的防火墙是firewalld防火墙,不是使用iptables,因此需要先关闭firewalld服务,或者干脆使用默认的firewalld防火墙. 操作步骤: 关闭防火墙 1.systemctl stop firewalld 2.systemctl mask firewalld 在使用iptables服务 #开放443端口(HTTPS)3.iptables -A INPUT -p tcp --dport 443 -j ACCEPT #保存上述规则4.service ip

docker 无法启动,报错:Unit docker.socket failed to load: No such file or directory

问题:docker无法启动 错误:     Failed to start docker.service: Unit docker.socket failed to load: No such file or directory.      解决方法:     systemctl unmask docker.service     systemctl unmask docker.socket     systemctl start docker.service

Unit iptables.service could not be found

问题:查看防火墙状态时报错service iptables status 解决方案 在CentOS 7或RHEL 7或Fedora中防火墙由firewalld来管理,当然你可以还原传统的管理方式,或则使用新的命令进行管理.本文中将还原传统的管理方式. cd /etc/sysconfig ls -l 没有查看到iptables文件,但存在ip6tables-config和iptables-config,本文中的linux为CentOS 7.6 ,CentOS 7默认没有了iptables文件. 安

rhel、centos、fedora使用yum安装mysql community server

在mysql官方链接中下载redhat系列的相应版本的升级包: http://dev.mysql.com/downloads/repo/yum/ redhat中root用户执行:rpm -Uvh mysql-community-release-el****.noarch.rpm 查看支持升级安装的mysql版本: [[email protected] ~]# yum repolist all | grep mysql mysql-connectors-community        MySQL