CentOS에 PostgreSQL 14.5 설치
# 저장소 추가
sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
# 패키지 설치
sudo yum install postgresql14-server postgresql14-contrib
# 데이터베이스 초기화
sudo /usr/pgsql-14/bin/postgresql-14-setup initdb
# 서비스 시작 및 활성화
sudo systemctl start postgresql-14
sudo systemctl enable postgresql-14
# postgres 사용자로 전환 및 셸 접속
sudo -i -u postgres
psql
참조
https://www.postgresql.org/download/linux/redhat/
PostgreSQL: Linux downloads (Red Hat family)
Linux downloads (Red Hat family) The Red Hat family of distributions includes: Red Hat Enterprise Linux Rocky Linux CentOS (7 and 6 only) Fedora Oracle Linux and others. PostgreSQL is available on these platforms by default. However, each version of the pl
www.postgresql.org
https://computingforgeeks.com/how-to-install-postgresql-14-centos-rhel-7/
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-centos-7
How To Install and Use PostgreSQL on CentOS 7 | DigitalOcean
www.digitalocean.com
https://docs.3rdeyesys.com/database/ncloud-database-postgresql-install-connect-guide-centos.html
설치형 PostgreSQL DB 설치, 접속 가이드 CentOS
Ncloud VPC환경에서 CentOS 서버에 설치형 PostgreSQL DB를 설치하고, 접속하는 방법입니다.
docs.3rdeyesys.com
'개발 > PostgreSQL' 카테고리의 다른 글
CentOS PostgreSQL data directory 변경 (0) | 2023.07.05 |
---|---|
[PostgreSQL] 배열 FOR LOOP (0) | 2023.01.04 |
PostgreSQL increment 초기화 (0) | 2022.08.12 |