systemctl start network 启动网卡服务报错解决方法

systemctl start network 启动网卡服务报错

[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.

解决思路查看错误日志

    查看日志
systemctl status network.service
或
journalctl -xe
    提示信息: 正在打开接口 ens33: 错误:激活连接失败:No suitable device found for this connection. 查看网卡信息,发现虚拟网卡丢失

解决方法

    输入以下命令即可解决
systemctl stop NetworkManager
    再重启网卡服务,不会报错
systemctl restart network
    查看相关信息
经验分享 程序员 微信小程序 职场和发展