标签:
在运行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 ,重启即可。
service network restart报错,出现FAILED
标签:
原文地址:http://www.cnblogs.com/xiangfu/p/4430483.html