Linux downloads (Red Hat family)
PostgreSQL Yum Repository を取得
01 2019/12/16 USBから試用インストール
02
03
PostgreSQL12
Red Hat Enterprise, CentOS, Scientific or Oracle version 8
を選択
5.Disable the built-in PostgreSQL module
dnf -qy module disable postgresql
が追加されているようです
04
dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
05
dnf -qy module disable postgresql
Unable to resolve argument postgresql
エラー: Problems in request:
missing groups or modules: postgresql
06
dnf install postgresql12
07
dnf install postgresql12-server
08
PGSETUP_INITDB_OPTIONS="-E UTF8 --locale=C" /usr/pgsql-12/bin/postgresql-12-setup initdb
##/usr/pgsql-12/bin/postgresql-12-setup initdb
systemctl enable postgresql-12
systemctl start postgresql-12
09
su postgres
psql
\l
alter role postgres with password 'dbPasswd123';
create database testdb1;
\q
10
firewall-cmd --add-port=5432/tcp --zone=public --permanent
firewall-cmd --reload
systemctl restart postgresql-12