更换Yum源

yum安装异常
Loading mirror speeds from cached hostfile

  • base: mirrors.cloud.aliyuncs.com
  • extras: mirrors.cloud.aliyuncs.com
  • updates: mirrors.cloud.aliyuncs.com

1.检测网络

ping baidu.com

2.更新yum源

cd /etc/yum.repos.d/
mkdir repos
mv -rf * repos/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum update
yum clean all
yum makecache
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页