가이드 제목은 [도구명] [내용]-하기 형태(ex Bitbucket Cloud 저장소 생성하기)로 입력한다.
이 문서에 대한 요약 /개요를 입력한다. (구글에서 검색되었을때 표시되는 문장)
이 문서는 PostgreSQL 13 Linux 설치 가이드를 공유하기 위해 작성되었다.
Rocky Linux 8.5 (CentOS 8.x 계열)에서 Yum 패키지 매니저를 통해 설치하는 방법을 가이드 한다.
가이드에 사용되는 도구 정보를 입력한다.
|
첨부한 이미지 너비는 800px 을 넘기지 않는다.
다음 명령어를 순서대로 실행하여 Yum 패키지 매니저를 통해 PostgreSQL 13을 다운로드하고 설치한다.
# Install the repository RPM: sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm (옵션) # Disable the built-in PostgreSQL module: sudo dnf -qy module disable postgresql # Install PostgreSQL: sudo dnf install -y postgresql13-server |
# PostgreSQL 초기화 sudo /usr/pgsql-13/bin/postgresql-13-setup initdb # 서비스 등록 sudo systemctl enable postgresql-13 # 서비스 실행 sudo systemctl start postgresql-13 # 서비스 동작 확인 sudo systemctl status postgresql-13 |
# 전용 계정으로 전환 su - postgres # psql 실행 psql # 초기 DB 확인 \l |