Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 저장소 추가

    Code Block
    $ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'  
  2. 서명 공개키 추가

    Code Block
    $ sudo wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add - 
  3. 설치

    Code Block
    sudo apt-get update  
    sudo apt-get upgrade 
    sudo apt-get install postgresql-9.6 

Amazon Linux

  1. 1설치

    Code Block
    $ sudo yum install postgresql96-server postgresql96-contrib postgresql96-devel
  2. 부팅시 자동 구동 설정

    Code Block
    $ sudo chkconfig postgresql96 on
  3. 초기 DB 생성

    Code Block
    $ sudo service postgresql96 initdb
  4. 서비스 구동

    Code Block
    $ sudo service postgresql96 restart

...