Linux 日常运维2.0&Job for network.service failed because the control process exited with error code.

Posted 张国荣家的弟弟

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux 日常运维2.0&Job for network.service failed because the control process exited with error code.相关的知识,希望对你有一定的参考价值。

文章目录

问题描述

重启网卡时候报错service network restart:Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
重启失败,具体的提升如下:

解决办法

  • 停止并禁用虚拟机NetworkManager服务

[root@localhost network-scripts]# systemctl stop NetworkManager
[root@localhost network-scripts]# 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.
  • 重新启动虚拟机网络服务

[root@localhost network-scripts]# systemctl restart network
[root@localhost network-scripts]# service network restart

Restarting network (via systemctl):                        [  OK  ]

总结:

这个方法的前提:如果配置的是静态IP地址就必须要将相应的地址写对。

以上是关于Linux 日常运维2.0&Job for network.service failed because the control process exited with error code.的主要内容,如果未能解决你的问题,请参考以下文章

Linux 日常运维 3.0&centos7.x配置静态IP并ping通外网

linux-日常运维-screen工具

Linux 日常运维1.0& centos7 ping: www.baidu.com: Name or service not known

linux运维指令

腾讯Linux运维职位日常主要做啥工作

Linux运维命令Curl - 日常用法总结