centos7 虚拟机中,网卡不启动的解决方式
使用NAT模式的虚拟centos, 只显示两个网卡,无法连接外网,输入systemctl start network后报错信息"Restarting network (via systemctl):Job for network.service failed because the control process exited with error code.See “systemctl stat
使用NAT模式的虚拟centos, 只显示两个网卡,无法连接外网,
输入systemctl start network后报错信息"
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
禁掉系统自带的NetworkManager服务就可解决
systemctl stop NetworkManager # 停止NetworkManager服务
systemctl disable NetworkManager # 设置开机不启动
systemctl start network # 启动网络服务
或者
停掉NetworkManager
service NetworkManager stop
chkconfig NetworkManager off
重启网络
systemctl restart network
更多推荐
所有评论(0)