http://mirror.centos.org/centos-6/
및 타사 이미지 사이트에서 사용할 수 없습니다. Tencent Cloud 사이트 http://mirrors.tencent.com/
및 http://mirrors.tencentyun.com/
에서는 CentOS 6 소스를 얻을 수 없습니다. Tencent Cloud에 구성된 기본 CentOS 6 소스를 계속 사용하면 오류가 발생할 수 있습니다.cat /etc/centos-release
CentOS-Base.repo
파일을 편집합니다.vim /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.tencentyun.com/centos-vault/6.x/
https://mirrors.cloud.tencent.com/centos-vault/6.x/
[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
파일을 수정합니다.vim /etc/yum.repos.d/CentOS-Epel.repo
baseurl=http://mirrors.tencentyun.com/epel/$releasever/$basearch/
를 baseurl=http://mirrors.tencentyun.com/epel-archive/6/$basearch/
로 수정하면 됩니다. 수정 완료 후는 다음 이미지와 같습니다.
[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
명령을 사용해 필요한 소프트웨어를 설치할 수 있습니다.
문제 해결에 도움이 되었나요?