Linux下解决网卡重启失败:Job for network.service failed because the con trol process exited with error code

[root@localhost ~]#  service network restart
Restarting network (via systemctl):  Job for network.service failed because the con
trol process exited with error code. See "systemctl status network.service" and "jo
urnalctl -xe" for details.

解决:

[root@localhost ~]# systemctl stop NetworkManager
[root@localhost ~]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager-wait-onl
ine.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
[root@localhost ~]# systemctl restart network
[root@localhost ~]#

[root@localhost ~]# service network restart
Restarting network (via systemctl):                        [  OK  ]
[root@localhost ~]#

你可能感兴趣的:(Linux)