2020年10月02日

PostgreSQL13 CentOS8 dnf Install

PostgreSQL13 Install



1.
1.png

2.
dnf -qy module disable postgresql
2.png
3.
dnf install -y postgresql13-server
3.png
4.
選択
* PGSETUP_INITDB_OPTIONS="-E UTF8 --locale=C" /usr/pgsql-13/bin/postgresql-13-setup initdb

* /usr/pgsql-13/bin/postgresql-13-setup initdb
4.png
5.
systemctl enable postgresql-13
5.png
6.
systemctl start postgresql-13
6.png

su postgres
psql
 \l
 alter role postgres with password 'dbPasswd123';
 create database testdb1;
 \q
firewall-cmd --add-port=5432/tcp --zone=public --permanent
firewall-cmd --reload
systemctl restart postgresql-13











posted by a23 at 07:31| Comment(0) | PostgreSQL