2つのインストール方法がありますpostgresql11:バイナリソースインストール、rpmパッケージのインストール
wgetのhttps://ftp.postgresql.org/pub/source/v11.5/postgresql-11.5.tar.gz は./configure --prefix = / U01 / pgsqlで 作る make installを http://download.postgresql.org wgetのを/pub/repos/yum/testing/11/redhat/rhel-6-x86_64/postgresql11-server-11.5-1PGDG.rhel6.x86_64.rpm wgetのhttps://yum.postgresql.org/testing/11/redhat/rhel -6-x86_64の/ postgresql11-11.5-1PGDG.rhel6.x86_64.rpm wgetのhttps://yum.postgresql.org/testing/11/redhat/rhel-6-x86_64/postgresql11-contrib-11.5-1PGDG.rhel6.x86_64 .rpmの wgetのhttps://yum.postgresql.org/testing/11/redhat/rhel-6-x86_64/postgresql11-libs-11.5-1PGDG.rhel6.x86_64.rpm wgetのhttps://ftp.postgresql.org/pub /source/v11.5/postgresql-11.5.tar.gz は./configure --prefix = / U01 / pgsqlでの メイク make installを wgetのhttp://download.postgresql.org/pub/repos/yum/testing/11/redhat/rhel-6-x86_64/postgresql11-server-11.5-1PGDG.rhel6.x86_64.rpm wgetのHTTPS://yum.postgresql .ORG /試験/ 11 / RedHatの/ RHEL-6-x86_64の/ postgresql11-11.5-1PGDG.rhel6.x86_64.rpm wgetのhttps://yum.postgresql.org/testing/11/redhat/rhel-6-x86_64/postgresql11 -contrib-11.5-1PGDG.rhel6.x86_64.rpm https://yum.postgresql.org/testing/11/redhat/rhel-6-x86_64/postgresql11-libs-11.5-1PGDG.rhel6.x86_64.rpm wgetの 回転数を- IVHのpostgresql11-LIBS-11.5-1PGDG.rhel6.x86_64.rpm のrpm -ivh postgresql11-11.5-1PGDG.rhel6.x86_64.rpm のrpm -ivh postgresql11-のcontrib-11.5-1PGDG.rhel6.x86_64.rpmの 回転数-ivh postgresql11サーバ-11.5-1PGDG.rhel6.x86_64.rpm
2のインストールが最初のユーザとグループのディレクトリおよび編集するユーザー環境を構築する必要があります前に、しかし、変数が厳しいsysctl.confのとあるlimits.confを設定する必要があります
groupaddのpostgresの -gのpostgres postgresのuseraddの postgresのはpasswd ます。mkdir -p / U01 / pgsqlの はpostgres / U01 / pgsqlでます。chown -Rのpostgres のchmod -R 775 / U01 / pgsqlの 輸出PGHOME = / U01 / pgsqlの 輸出PGDATA = / U01 / pgsqlの/データ 輸出PATH = $ PATHにします。$ HOME / binに:$ PGHOME / binに
インストールでは、/ usr / local / pgsqlの-11下/ U01 / pgsqlのに何回転数からコピーする必要があります後
初期化initdbを
PostgreSQLのにpg_ctl startを開始
ネットワーク構成pg_hba.confファイルを変更します。
すべてすべて192.168.20.0/24信頼をホスト - この構成の生産は安全ではないに
マスター設定ファイルpostgresql.confのを修正
リスナーアドレスのlisten_addresses = '192.168.20.202'
ポート#port = 5432