ひじりんのひつまむしブログ

現役システムエンジニアのゲームやら映画やら技術やら・・

AlmaLinux 8 にPostgreSQLをインストール

バージョンを確認

#dnf module list postgresql

私の環境では、複数設定されていました

Last metadata expiration check: 0:56:32 ago on Sun Jun 11 13:14:29 2023.
AlmaLinux 8 - AppStream
Name         Stream   Profiles             Summary
postgresql   9.6      client, server [d]   PostgreSQL server and client module
postgresql   10 [d]   client, server [d]   PostgreSQL server and client module
postgresql   12       client, server [d]   PostgreSQL server and client module
postgresql   13       client, server [d]   PostgreSQL server and client module
postgresql   15       client, server [d]   PostgreSQL server and client module

 

バージョンを変更

#dnf module enable postgresql:9.6

 

インストール

#dnf install postgresql postgresql-server

#su - postgres

$initdb

$exit

 

#systemctl enable postgresql

#systemctl start postgresql

 

 

PVアクセスランキング にほんブログ村