[VMwar、Centos 7] 重启网络服务时提示Job for network.service failed because the control process exited with ...

版权声明:本文为博主原创文章,未经博主允许禁止转载! https://blog.csdn.net/az9996/article/details/89319663

=======================================================================
  前几天一直用着好好的,今天打开虚拟机后突然就无法联网了,于是一番折腾,这里做一个记录

=======================================================================

一、在手动重新连接失败后,尝试重启网络服务出现错误

[root@localhost network-scripts]# service network restart
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.                              

按提示执行systemctl status network.service and journalctl -xe两个命令

[root@localhost network-scripts]# systemctl status network.service 
● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2017-08-04 08:20:31 CST; 1min 44s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3334 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=(code=exited, status=1/FAILURE)

二、我的虚拟机配置的上网方式为NAT,动态IP

三、在“计算机->管理->服务”中查看服务进程 VMware DHCP Service、VMware NAT Service

在这里插入图片描述
发现两者未启动,于是右键启动后,在虚拟机中打开百度网页,可以正常打开,问题解决!

类似问题:
https://blog.csdn.net/dongfei2033/article/details/81124465

猜你喜欢

转载自blog.csdn.net/az9996/article/details/89319663
今日推荐