Centos7 配置阿里云 yum 镜像

Scroll Down

Centos7 配置阿里云 yum 镜像

# 备份旧的 yum 源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
# 下载阿里云 repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# 清除缓存
yum clean all 
# 生成缓存
yum makecache
鲁ICP备 19052590 号

Copyright © 2020 码动青春

Powered by Halo • Theme by Subtle Galaxy • REFERENCE FROM 寒山

本站运行:

感谢位小伙伴的 次访问

Back to the top