CentOS 镜像
下载地址:
配置方法
覆盖配置文件
CentOS 6
CentOS 7
CentOS 8(centos8官方源已下线,建议切换到centos-vault源)
运行 yum makecache 生成缓存
非阿里云ECS用户会出现 Couldn't resolve host 'mirrors.cloud.aliyuncs.com' 信息,不影响使用。用户也可自行修改相关配置: eg:
最后更新于
这有帮助吗?
下载地址:
CentOS 6
CentOS 7
CentOS 8(centos8官方源已下线,建议切换到centos-vault源)
运行 yum makecache 生成缓存
非阿里云ECS用户会出现 Couldn't resolve host 'mirrors.cloud.aliyuncs.com' 信息,不影响使用。用户也可自行修改相关配置: eg:
最后更新于
这有帮助吗?
这有帮助吗?
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupwget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repowget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repowget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.reposed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo