service network restart报错,出现FAILED

在运行service network restart命令时候,显示如下错误

hutting down loopback interface:                           [  OK  ]
Bringing up loopback interface:                            [  OK  ]
fgrep: ifcfg-ifcfg-eth0: No such file or directory
fgrep: ifcfg-ifcfg-eth0: No such file or directory
fgrep: ifcfg-ifcfg-eth0: No such file or directory
egrep: ifcfg-ifcfg-eth0: No such file or directory
Bringing up interface ifcfg-eth0:  ./ifup: configuration for ifcfg-eth0 not found.
Usage: ifup <device name>
                                                           [FAILED]

检查以下几个几处是否有误。

1、/etc/sysconfig/network-sctript/下ifcfg-eth0文件不存在。尝试复制/etc/sysconfig/networking/devices/下的ifcfg-eth0 到/etc/sysconfig/network-sctript/下 ;

2、/etc/sysconfig/network-sctript/下ifcfg-eth0重复。尝试打开该目录下,查看是否有重复的ifcfg-eth0文件,若有删除空白那个(rm -rf ifcfg-eth0);
3、命令行,通过Tab补全发现是否文件名ifcfg-eth0变成 ifcfg-eth0\或者 ifcfg-eth0/了,重命名该文件(mv ifcfg-eth0\  ifcfg-eth0); 
4、打开/etc/sysconfig/network-sctript/下的ifcfg-eth0,看是否ONBOOT=no改为yes ,重启即可。

时间: 2024-10-13 19:00:19

service network restart报错,出现FAILED的相关文章

service docker start 报错 :Failed to start docker.se

service docker start 报错 :Failed to start docker.service: Unit not found. 解决办法: vi /usr/lib/systemd/system/docker.socket 添加内容如下: [Unit] Description=Docker Socket for the API PartOf=docker.service [Socket] ListenStream=/var/run/docker.sock SocketMode=0

service cloudera-scm-server restart报错 Unable to retrieve remote parcel repository manifest

Unable to retrieve remote parcel repository manifest 1 详细错误 ERROR ParcelUpdateService:com.cloudera.parcel.components.ParcelDownloaderImpl: Unable to retrieve remote parcel repository manifest java.util.concurrent.ExecutionException: java.util.concurr

虚拟机 克隆 设置固定ip eth0 不存在 service network restart失败

前言很重要: 1)如果你看来网上很多设置固定ip的资料,依然没有成功: 2)如果你虚拟机是克隆的,如果你重启网络报错:Bringing up interface eth0:  Error: No suitable device found: no device found for connection 'System eth0'. 3)如果你没有eth0 那么你很可能来对地方了解决问题:1)设置固定ip,2)克隆的虚拟机重启网络service network restart 报错 步骤: 1.

docker报错:Failed to restart docker.service: Unit not found.

前言:我之前安装好docker了,但是关机重启后,发现docker就没了 报错:Failed to restart docker.service: Unit not found. 解决方法: 1.重装大法,法力无边 a.先卸载上个版本的相关软件 yum -y  remove  docker  docker-common  docker-selinux  docker-engine b.安装docker 最详细最快部署docker::https://www.jianshu.com/p/9c96ea

centos7 无法启动网络(service network restart)错误解决办法(转)

centos7 无法启动网络(service network restart)错误解决办法:(以下方法均为网上COPY,同时感谢原博主分享) systemctl status network.service 出现以下错误"rtnetlink answers file exists" 的解决方法 第一种: 和 NetworkManager 服务有冲突,这个好解决,直接关闭 NetworkManger 服务就好了, service NetworkManager stop,并且禁止开机启动

(转)启动网卡报错(Failed to start LSB: Bring up/down networking )解决办法总结

启动网卡报错(Failed to start LSB: Bring up/down networking )解决办法总结 原文:http://blog.51cto.com/11863547/1905929 http://blog.csdn.net/debimeng/article/details/74296152?utm_source=itdadao&utm_medium=referral Failed to start LSB: Bring up/down networking 遇到这个错误好

解决cron无法运行报错:FAILED

解决cron无法运行报错:FAILED to authorize user with PAM (Module is unknown) 查看cron运行日志tail -f /var/log/cron报如下错误: May 8 10:14:01 localhost crond[9399]: (root) FAILED to authorize user with PAM (Module is unknown) May 8 10:14:01 localhost crond[9400]: (root) F

git push报错error: failed to push some refs to &#39;[email&#160;protected]:

$ git push -u origin master To [email protected]:xxx/xxx.git ! [rejected] master -> master (fetch first) error: failed to push some refs to '[email protected]:xxx/xxx.git' hint: Updates were rejected because the remote contains work that you do hint:

centos7 无法启动网络(service network restart)错误解决办法

systemctl status network.service 出现以下错误“rtnetlink answers file exists” 的解决方法 和 NetworkManager 服务有冲突,这个好解决,直接关闭 NetworkManger 服务就好了.service NetworkManager stop,再重新输入service network restart就好了.