Centos 7虚拟机ip地址配好后经常丢失

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

你可能感兴趣的:(centos,服务器,linux)