1. Repository 추가 ( Postgresql 10 을 yum으로 자동설치하기 위한 Repository 위치 추가 )
rpm -Uvh https://yum.postgresql.org/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm |
2. yum을 이용한 Postgres Downlaod ( Server와 Client 패키지 설치 )
yum install -y postgresql10-server postgresql10 |
3. DB 초기화
/usr/pgsql-10/bin/postgresql-10-setup initdb |
4. Postgresql 시작 및 상태 확인
systemctl start postgresql-10 systemctl status postgresql-10 |
5. 리부팅 되고나서 Postgres 시작
systemctl enable postgresql-10 |
6. 접속 방법
su - postgres psql |