Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
待机一会,发现Xshell连接失败,发现网络连接失败,且重启失败。
一、Xshell掉了,重新连接失败。先ping一下,看网络是否通的
[root@db01 ~]# ping www.baidu.com
ping: www.baidu.com: 未知的名称或服务
二、重启network服务,发现报错
[root@db01 ~]# systemctl restart network
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
三、根据提示查看报错信息
[root@db01 ~]# 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 四 2021-06-03 05:23:42 CST; 23s ago
Docs: man:systemd-sysv-generator(8)
Process: 8821 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/