1.下载centos6的yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos6_base.repo
2.把http替换https
sed -i 's#http#https#g' /etc/yum.repos.d/CentOS-Base.repo
3.清除缓存
yum clean all
yum makecache

1.下载centos6的yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos6_base.repo
2.把http替换https
sed -i 's#http#https#g' /etc/yum.repos.d/CentOS-Base.repo
3.清除缓存
yum clean all
yum makecache