YJWANG

[DB] postgreSQL 12 설치 (CentOS 8.x) 본문

50.DB

[DB] postgreSQL 12 설치 (CentOS 8.x)

왕영주 2021. 1. 20. 14:01

refer to


설치


https://www.postgresql.org/download/linux/redhat/

[root@kube62_deploy_0 postgreSQL]# dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
...

[root@kube62_deploy_0 postgreSQL]# dnf -qy module disable postgresql

[root@kube62_deploy_0 postgreSQL]# dnf install -y postgresql12-server
...

[root@kube62_deploy_0 postgreSQL]# /usr/pgsql-12/bin/postgresql-12-setup initdb
Initializing database ... OK

[root@kube62_deploy_0 postgreSQL]# systemctl enable postgresql-12
Created symlink /etc/systemd/system/multi-user.target.wants/postgresql-12.service → /usr/lib/systemd/system/postgresql-12.service.

[root@kube62_deploy_0 postgreSQL]# systemctl start postgresql-12

DB 접속


[root@kube62_deploy_0 postgreSQL]# su - postgres
[postgres@kube62_deploy_0 ~]$ psql
psql (12.5)
Type "help" for help.

postgres=# 
반응형