投稿

ppp

1 □ 指定モジュールのインストール可能なバージョンを確認 dnf module list postgresql 2 □ dnf module enable postgresql:13 -y dnfコマンドで、インストールを実行 dnf install -y --downloadonly --destdir /home/work/repo postgresql-server 3 □ dnf localinstall -y  libicu-60.3-2.el8_1.x86_64.rpm libpq-13.5-1.el8.x86_64.rpm postgresql-13.7-2.module+el8.6.0+980+9caa008a.x86_64.rpm postgresql-server-13.7-2.module+el8.6.0+980+9caa008a.x86_64.rpm  4 □ PostgreSQL 13初期化 postgresql-setup –initdb 5 □ 開始 sudo systemctl start postgresql 6 □ 起動設定 sudo systemctl enable postgresql 7 □ ステータスを確認 sudo systemctl status postgresql 8 □ psql確認 # su – postgres $ psql 9 □ db作成 # su – postgres $ createdb ruledb [postgres@5e23c209aaeb ~]$ psql -d ruledb psql (13.7) Type "help" for help. ruledb=# 10 □ 業務DBインポート 11 □ postgresql.confを修正 外部から接続できるようにするには「/var/lib/pgsql/14/data」にある「postgresql.conf」を以下のように編集 /var/lib/pgsql/data/postgresql.conf listen_addresses = '*' port = 5432 12 ...