2021.11月发现Centos6.x的源都不能用了,原因是阿里镜像、清华镜像都使用了https方式,请更新如下文件:
添加yum不对ssl校验:
echo ‘sslverify=false’ >> /etc/yum.conf
修攺yum源(/etc/yum.repod/CentOS-Base.repo):
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever