首页 文章 centos修改为阿里云镜像源代码

centos修改为阿里云镜像源代码

2026-07-06 12:41:55

广告

解决国外镜像无法使用yum或者太慢的问题

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

运行 yum makecache 生成缓存