Job for network.service failed because the control process exited with error code.报错解决方法

	centOS 7虚拟机下载修改程序后静态ip会出现报错,报错内容如下:

Job for network.service failed because the control process exited with error code.See “systemctl status network.service” and “journalctl -xe” for details(由于控制进程退出并显示错误代码,因此network.service的作业失败。有关详细信息,请参见“ systemctl status network.service”和“ journalctl -xe”)

	如果根据提示输入“ systemctl status network.service”就会出现下面的情况:

● network.service - LSB: Bring up/down networkingLoaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)Active: failed (Result: exit-code) since 五 2017-07-14 19:01:47 CST; 1min 16s agoDocs: man:systemd-sysv-generator(8)Process: 4681 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)CGroup: /system.slice/network.service└─1192 /sbin/dhclient -H mini1 -1 -q -lf /var/lib/dhclient/dhclient–ens33.lease -pf /v…
根本解决不了问题我自己使用了如下操作就好了:
service NetworkManager stop 关闭 NetworkManger 服务
chkconfig NetworkManager off 永久关闭 Manager网卡
service network restart 重启network网卡

这样一顿操作就OK了

你可能感兴趣的:(java)