如图

centos7使用yum下载软件失败,提示:尝试其他镜像

解决方法:修改修改配置文件ifcfg-ens33

  1. [[email protected] /]# cd /etc/sysconfig/network-scripts/
  2. [[email protected] network-scripts]# vim ifcfg-ens33 
  3. 修改配置文件,将ONBOOT="on"中"on"改为"yes",Esc,:wq。

    centos7使用yum下载软件失败,提示:尝试其他镜像

  4. 重启网络服务 [[email protected] network-scripts]# netstat network restart
  5. 此时重新使用yum下载软件即可!

 

 

相关文章: