hoony's web study

728x90
반응형

그냥 알고 있던 것들이 안 먹을때 참 난처합니다. 
CentOS6 공식지원 종료로 인해서 
/etc/yum.repos.d/CentOS-Base.repo에 있는 사이트가 정상적으로 작동하지 않습니다.
파일내에 있는 http://mirror.centos.org가 정상적으로 작동하지 않습니다.

대처방법

# 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 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.iij.ad.jp/pub/linux/centos-vault/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=http://ftp.iij.ad.jp/pub/linux/centos-vault/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=http://ftp.iij.ad.jp/pub/linux/centos-vault/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
baseurl=http://ftp.iij.ad.jp/pub/linux/centos-vault/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

위와같이 mirrorlist 를 주석처리하고 baseurl 을 수정해주셔야합니다.

baseurl=http://ftp.iij.ad.jp/pub/linux/centos-vault/centos

저와 같은 버전의 구버전의 CentOS 6.x 버전을 가지고 하시는 분들은 위의 곳이 많이 도움이 되실꺼에요. 

도움이 되셨으면 광고클릭 부탁드립니다.
광고로 얻은 수익은 블로그를 운영하는데 많은 도움이 됩니다. 

반응형

참고로 위의 사이트도 불시에 지원이 종료될수 있다는것도 참고해주세요.

728x90

'개발관련 > 서버기술관련' 카테고리의 다른 글

[CentOS 7] Jenkins 설치  (0) 2022.09.22
[CentOS7] MariaDB 설치 중 오류  (1) 2022.09.20
[NGINX] File CORS 설정  (0) 2022.08.11
[Let's Encrypt] SSL Certificate 삭제 방법  (0) 2022.08.09
[NGINX] authorization 설정하기  (0) 2022.08.08

공유하기

facebook twitter kakaoTalk kakaostory naver band
loading