# 背景
```
使用阿里云CentOS作为镜像仓库
```
# 镜像仓库
```
#- 默认系统没有安装wget,因此使用curl最方便
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
sed -i 's/mirrors.cloud.aliyuncs.com/mirrors.aliyuncs.com/g' /etc/yum.repos.d/CentOS*.repo
```
标签:repo,aliyuncs,repository,CentOS,mirrors,repos,CentOS7,com From: https://www.cnblogs.com/Jeona/p/17379947.html