当centos 7系统 重启网卡
执行 service network restart 出现以下错误:
Restarting network (via systemctl): Job for network.service failed. See 'systemctl status network.service'
and 'journalctl -xn' for details.
处理经验:
要删除不存在网卡的配置
cat /proc/net/dev 或 ifconfig -a 查看有几块网卡;
如:没有eth0 网卡 则
rm -rf /etc/sysconfig/network-scripts/ifcfg-eth0
再执行重启网卡ok;