-
PostgreSQL 설치하기 (Yum)Database 2025. 3. 22. 20:54
- 저장소 설치
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
- 저장소 확인
yum repolist
- 기본 PostgreSQL 모듈 비활성화
sudo yum -qy module disable postgresql
- PostgreSQL 설치
sudo yum install -y postgresql13-server
- PostgreSLQ 초기화
sudo /usr/pgsql-13/bin/postgresql-13-setup initdb
- 서비스 등록 및 확인
# 등록 sudo systemctl enable postgresql-13 # 시작 sudo systemctl start postgresql-13 # 확인 sudo systemctl status postgresql-13
- Database 확인
# 전용 계정으로 전환 (postgresql : 설치 시 생성되는 기본 관리자 계정) sudo su - postgres # psql 실행 psql # 초기 DB 확인 \l
'Database' 카테고리의 다른 글
[MySQL] 관리자 비밀번호 재설정 (Windows) (0) 2025.03.22 [ERROR][MySQL] You do not have the SUPER privilege and binary logging is enabled (0) 2025.03.22 [ERROR][MySQL] Your database use 'READ-COMMITTED' as the deafault isolation level (0) 2025.03.22 [ERROR][MySQL] Host is not allowed to connect to this MySQL server (0) 2025.03.22 [Linux] MySQL8 설치하기 (0) 2025.03.22