[root@apache~]# 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.
提示错误: Job for network.service failed because the control process exited with error code. See “systemctl status network.service” and “journalctl -xe” for details.
解决思路查看错误日志
View log
systemctl status network.service
或
journalctl -xe
Prompt message: Opening interface ens33: Error: Failed to activate connection: No suitable device found for this connection.
Check the network card information and find that the virtual network card is missing
解决方法
Enter the following command to solve
systemctl stop NetworkManager
Restart the network card service, no error will be reported