Centos7 yum时,出现could not retrieve mirrorlist问题 在root权限下 1. vim /etc/sysconfig/network-scripts/ifcfg-ens33 2. 将ONBOOT改为yes,wq!保存退出 3. service network restart 重启网络即可