2018년 2월 12일 월요일

CentOS 6.x 버전에 PostgreSQL 최신 버전 설치하기 - #01.

서비스 환경이 그러하다.


1. CentOS 6.5

   제목은 6.x라고 정했지만 우리는 6.5를 사용중이기 때문에 6.5를 사용합니다.


   보시다시피 8.4.x 버전 이외에 다른 버전은 없습니다.

2. 저장소 변경.

   최신 버전을 설치할 수 있도록 저장소를 변경합니다.

1
vi /etc/yum.repos.d/CentOS-Base.repo
cs

   그리고, [base]와 [updates] 항목에 postgresql 관련 항목을 무시하도록 추가합니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
exclude=postgresql*
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
exclude=postgresql*
cs


3. 저장소 설치.

  • 다운로드 후 설치
    • 1
      2
      curl -O http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-3.noarch.rpm
      rpm -ivh pgdg-centos93-9.3-3.noarch.rpm
      cs
  • 바로 설치
    • 1
      rpm -Uvh  https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-3.noarch.rpm
      cs

4. PostgreSQL 설치.

   그리고 그 다음은 그냥 설치하면 된다.

댓글 없음:

댓글 쓰기