使用国内的阿里云镜像
(1)把/etc/yum.repos.d/下面所有的源给删除掉了
(2)下载镜像
1 # CentOS 5 2 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo 3 # CentOS 6 4 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 5 # CentOS 7 6 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
原文地址:https://www.cnblogs.com/huang99882008/p/9282163.html
时间: 2024-11-09 03:24:08