标签:ali img red 自带 detail name href pre 步骤
阿里镜像官方地址http://mirrors.aliyun.com/
1、点击官方提供的相应系统的帮助 :
2、查看不同版本的系统操作:
备份Centos7系统自带的yum源配置文件(/etc/yum.repos.d/CentOS-Base.repo)
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 或: cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 或: curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
更改阿里云的yum源文件,将所有http更改为https,不改有的镜像下不下来
vim /etc/yum.repos.d/CentOS-Base.repo
# 清除缓存: yum clean all # 生成缓存 yum makecache
yum update
在/etc/yum.conf中添加:
proxy=http://192.168.2.56:8080 proxy_username=hanzhc proxy_password=19920104Caishuang
参考:https://blog.csdn.net/Steven19920104/article/details/9316
标签:ali img red 自带 detail name href pre 步骤
原文地址:https://www.cnblogs.com/zhaoyanhaoBlog/p/12118473.html