http://mirror.centos.org/centos-6/, a third-party image site, or Tencent Cloud at http://mirrors.tencent.com/ and http://mirrors.tencentyun.com/. If you continue to use the default CentOS 6 source configured in Tencent Cloud, an error may occur.cat /etc/centos-release

CentOS-Base.repo file.vim /etc/yum.repos.d/CentOS-Base.repo
baseurl according to the CentOS version and network environment.http://mirrors.tencentyun.com/centos-vault/6.x/http://mirrors.tencent.com/centos-vault/6.x/CentOS-Base.repo file is as follows:

[extras]gpgcheck=1gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-6enabled=1baseurl=http://mirrors.tencentyun.com/centos-vault/6.9/extras/$basearch/name=Qcloud centos extras - $basearch[os]gpgcheck=1gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-6enabled=1baseurl=http://mirrors.tencentyun.com/centos-vault/6.9/os/$basearch/name=Qcloud centos os - $basearch[updates]gpgcheck=1gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-6enabled=1baseurl=http://mirrors.tencentyun.com/centos-vault/6.9/updates/$basearch/name=Qcloud centos updates - $basearch
CentOS-Epel.repo file.vim /etc/yum.repos.d/CentOS-Epel.repo
baseurl based on the network environment.
In this example, change baseurl=http://mirrors.tencentyun.com/epel/$releasever/$basearch/ to baseurl=http://mirrors.tencentyun.com/epel-archive/6/$basearch/. The result is as follows:

[epel]name=epel for redhat/centos $releasever - $basearchfailovermethod=prioritygpgcheck=1gpgkey=http://mirrors.tencentyun.com/epel/RPM-GPG-KEY-EPEL-6enabled=1baseurl=http://mirrors.tencentyun.com/epel-archive/6/$basearch/
yum install command to install the required software.Feedback