原因是Centos7有Networkmanager和network.service两种网络管理工具
运行
systemctl stop Networkmanager
systemctl disable Networkmanager
然后重启服务
systemctl restart network
systemctl status network在这里插入代码片
原因是Centos7有Networkmanager和network.service两种网络管理工具
运行
systemctl stop Networkmanager
systemctl disable Networkmanager
然后重启服务
systemctl restart network
systemctl status network在这里插入代码片