1.问题
今天执行linux启动网络服务命令,发现报错不能联网
报错信息:
Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
[失败]
[root@centos7 lee]# ^C
2.解决办法 :重启NetworkManager
[root@centos7 lee]# systemctl stop NetworkManager
[root@centos7 lee]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
Removed symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.
# 重启network
[root@centos7 lee]# systemctl restart network