1 はじめに言語パックインストーラには、EDB Postgres Advanced ServerおよびPostgreSQLデータベースインストーラで使用できるサポートされている言語が含まれています。言語パックインストーラを使用すると、サードパーティベンダーのサポートソフトウェアをインストールすることなく、Perl、TCL / TK、およびPythonをインストールできます。言語パックのインストールと使用の詳細については 、EnterpriseDB Webサイトから入手可能な「 EDB Postgres 言語 パック ガイド」 を参照してください 。
1.1 新機能サポートされている機能の詳細については 、次のEnterpriseDB Webサイトから入手可能な「EDB Postgres Enterprise Manager EDB Ark管理ガイド」 を参照してください 。
1.2 このガイドで使用される表記規則以下の説明では、 用語は、言語キーワード、ユーザ提供値、リテラルなどの任意の単語または単語群を指す。用語の正確な意味は、それが使用される文脈に依存する。
PEMワーカー(:PEMエージェントインストーラは、2つの実行作成 pemworker 。 exe )とPEMエージェント( pemagent 。 exe )。各PEMワーカーには、対応するPEMエージェントがあり、PEMワーカーの起動または停止に使用できます。 PEMエージェントは予期せず終了した場合でもPEMワーカーを再起動します。PEMワーカーログファイルには、PEMワーカーアクティビティ(プローブアクティビティ、ハートビートレスポンスなど)に関連する情報が含まれ、/var/log/ /var/log/pem/worker.log 格納されます。
2.1 サポートされるプラットフォーム
2.2 ハードウェアの前提条件
2.3 ソフトウェアの前提条件pg_hba.confファイルは、PostgreSQLサーバの接続を管理します。 pg _ hba 確認する必要があります。 confファイルは、PEMサーバー、監視PEMエージェント、およびPEM-HTTPDサーバーのホストからの接続を許可します。次の例は、Redhat Enterprise Linux、Fedora CoreまたはCentOSディストリビューションで動作します。 Linuxディストリビューションと互換性のある同等のコマンドを使用して、 インストール中に SELinuxを permissive モードに 設定し、インストールが完了したら enforcing モードに 戻し ます。CentOS 7.xホストにPEMエージェントをインストールする前に、ホストに wxBaseパッケージとwxBase epel-releaseパッケージが含まれていることを確認する必要があります。パッケージをインストールするには、コマンドラインを開き、 root権限を引き継いでコマンドを呼び出します。PEMコンポーネントをWindowsにインストールする場合は、 Administrative権限でPEMインストーラを呼び出す必要があります 。管理者権限を使用してインストーラを起動するには、インストーラアイコンを右クリックし、コンテキストメニューから[ Administrator as Run ]を選択します。現時点では、PEMサーバーとWebインターフェイスは、 English(US) en_US ロケール English(US) en_USと、ピリオド( . )を言語区切り文字として使用しEnglish(US) en_US 。代替ロケールまたはピリオド以外の区切り文字を使用すると、エラーが発生する可能性があります。
PEMサーバーのグラフィカルインストーラは、PEMサーバー、PEMエージェント、およびPEM Webインターフェイスに接続するために必要なソフトウェアを、選択したブラウザとともにインストールおよび設定します。 PEMサーバーとともにインストールされるPEMエージェントは、同じホストまたはリモートホスト上に存在する複数のサーバーを監視できます。リモートエージェントによって監視されるサーバー上のPEM機能が制限される場合があることに注意してください。 PEMサーバーのグラフィカルインストーラの使用方法の詳細については、 3.1 項を参照してください 。
PEMサーババックエンドデータベースは、PostgreSQLまたはAdvanced ServerデータベースサーバのEnterpriseDBディストリビューションでも、別のソースからインストールされた既存のPostgresサーバでもかまいません。 Postgresバッキングデータベースサーバは、バージョン9.3以降でなければならず 、PEMサーバがリポジトリとして使用するpem という名前のデータベースを含みます。
Windowsシステムでは、インストーラアイコンを右クリックし、[ Run as Administrator ]を選択し Run as Administrator 。インストーラはWelcomeダイアログ(図3.2)を表示します。適切なラジオボタンを強調表示し て契約に同意する 前に、ライセンス契約(図3.3参照)を慎重に確認してください 。 [ Next を クリック して Installation を続行します。 Directory ダイアログ。
既存のPostgresサーバー(バージョン9.3以降)を使用して、PEMサーバーと pemデータベースをホストすることができます。 Postgresインストーラと必要なソフトウェア拡張は、次のEnterpriseDB Webサイトから自由に入手できます。Postgresの以下のバージョンは、 sslutils拡張とサービススクリプトを含むようにあらかじめ設定されています。次のPostgresバージョンをPEMバックエンドデータベースサーバとして使用するための追加の準備は必要ありません。3.1.3.1 Postgresサーバの準備
SET GETTEXTPATH= path_to_gettext
SET OPENSSLPATH= path_to_openssl
SET PGPATH= path_to_pg_installation_dir
SET ARCH=x86
REM Set ARCH x64 for 64 bit
msbuild sslutils.proj /p:Configuration=Releasepath_to_pg_installation_dirは、Postgresインストールの場所を指定します。3.1.3.1.2 サービス・スクリプトの作成またはサービスの登録Linuxでは、サービス・スクリプトは /etc/init.dディレクトリーになければなりません 。サービス・スクリプトは、データベース・サーバーを開始、停止、再始動できる必要があります。サービススクリプトはプラットフォーム固有です。 Linuxのサンプルサービススクリプトは、第7章「Linuxサービススクリプト(サンプル)」を参照してください 。 Postgresサービスをカスタマイズする方法については、以下をご覧ください。Windowsを使用してPEMバックエンドデータベースをホストする場合は、WindowsサービスマネージャーにPostgresサーバーの名前を登録する必要があります。 EnterpriseDBインストーラを使用して作成されたPostgresサーバを使用している場合、サービスは自動的に登録されます。インストールを手動でビルドする場合は、Postgres pg_ctlコマンドのregister句を使用してサービスを登録できます。コマンドの構文は次のとおりです。user_nameは、PostgresインストールディレクトリにアクセスしてPostgresサービスを開始するのに十分な特権を持つオペレーティングシステムユーザの名前を指定します。data_directoryは、Postgresのデータディレクトリの場所を指定します。使用方法の詳細について pg_ctlコマンドと利用可能なコマンドオプションを、利用可能にPostgresのコアドキュメントを参照してください。3.1.3.2 PEM Serverインストーラの起動適切なラジオボタンを強調表示して同意を得る前に、使用許諾契約書(図3.32参照)を慎重に確認してください。 [ Nextへ]をクリックして[ Installation Directory ]ダイアログボックスに進みます 。使用する Installation Directory PEMサーバーの場所を指定し、アクセスするために(Figur 電子3.33に示す)ダイアログをAdvanced options ]ダイアログボックスを:
file on the backing database must be configured to use trust authentication for connections. For information about modifying the The pg_hba.conf file on the backing database must be configured to use trust authentication for connections. For information about modifying the pg_hba.confファイルのfile on the backing database must be configured to use trust authentication for connections. For information about modifying the pg_hba.conf file on the backing database must be configured to use trust authentication for connections. For information about modifying the , visit:You must also install the hstore contrib module; for more information, visit: You must also install the module; for more information, visit:PEMサーバーをインストールする前に、リポジトリー構成ファイル( edb.repo )を作成する必要があります 。リポジトリ構成ファイルには、EnterpriseDBリポジトリの接続および認証情報が含まれています。システムにRPMインストールを実行する準備をするには、スーパーユーザー権限を持ち、 yumを使用してリポジトリ構成ファイルを作成します。Please note: If you are a Red Hat Network user you must also enable the rhel-x-server-optional-rpms repository to use EPEL packages, where x specifies the version of RHEL on the host. You can make the repository accessible by enabling the RHEL optional subchannel for RHN-Classic. If you have a certificate-based subscription, please see the Red Hat Subscription Management Guide. You must also enable Please note: If you are a Red Hat Network user you must also enable the repository to use EPEL packages, where x specifies the version of RHEL on the host. You can make the repository accessible by enabling the RHEL optional subchannel for RHN-Classic. If you have a certificate-based subscription, please see the Red Hat Subscription Management Guide. You must also enable rhel-x-server-optional-rpms repository to use EPEL packages, where x specifies the version of RHEL on the host. You can make the repository accessible by enabling the RHEL optional subchannel for RHN-Classic. If you have a certificate-based subscription, please see the Red Hat Subscription Management Guide. You must also enable the rhel-x-server-extras-rpms repository, where x specifies the version of RHEL on the host. repository to use EPEL packages, where x specifies the version of RHEL on the host. You can make the repository accessible by enabling the RHEL optional subchannel for RHN-Classic. If you have a certificate-based subscription, please see the Red Hat Subscription Management Guide. You must also enable repository, where x specifies the version of RHEL on the host.After creating the repository configuration file, use your choice of editor to enable the repository entries from which you will install packages. The repository configuration file is named edb.repo , and resides in /etc/yum.repos.d . Toリポジトリ. To有効にするには、 enabledパラメータの値を1 、 baseurl仕様のusernameとpasswordプレースホルダーをユーザー名とリポジトリー・パスワードに置き換えます。
3.3 PEMエージェントのインストール[ Setup…ページが開き、PEMエージェントインストーラーが表示されます(図3.43を参照)。適切なラジオボタンをハイライト表示して契約に同意する前に、ライセンス契約(図3.44参照)を慎重に確認してください。 [ Nextへ]をクリックして[ Installation Directory ]ダイアログボックスに進みます 。デフォルトでは、PEMエージェントは /home/opt/PEMディレクトリにインストールされ /home/opt/PEM 。デフォルトのインストールディレクトリを受け入れるか、 Installation Directoryフィールド(図3.45参照)の内容を変更して、PEMエージェントの代替インストールディレクトリを指定します。デフォルトでは、PEMエージェントインストーラは %APPDATA%\pem ~root/.pem (Linuxの場合)またはAdministratorの%APPDATA%\pemディレクトリ(Windowsの場合)に証明書を配置します。 [ Show advanced optionsチェックボックスをオンにして、PEMエージェントインストーラに証明書ファイルの代替パスを指定できるダイアログを含めることを指定します。横にあるボックスをチェックし Register now?インストーラが新しくインストールされたPEMエージェントをPEMサーバに登録するようインストーラに指示します。
3.3.2 RPMパッケージによるエージェントのインストールLinuxシステムでは、 yumパッケージマネージャを使用してPEMエージェントをインストールできます 。パッケージマネージャを使用してPEMエージェントをインストールする前に、ホストに次のパッケージが含まれている必要があります。
すべてのコマンドラインオプションがすべてのプラットフォームに適しているわけではありません。コマンドラインオプションの完全なリファレンスガイドについては 、インストーラを起動するときに--helpオプションを指定してください。
3.4.1 無人モードでのPEMサーバー・インストーラの起動
./pem-httpd- version -linux-x64.run --mode unattended
./postgresql- version -linux-x64.run --mode unattended./pem-server-7. xx- linux-x64.run --mode unattended
--existing-user xx- linux-x64.run --mode unattended
--existing-user registered_edb_user --existing-password edb_user_password --pgport port --pguser postgres
--pgpassword postgres -–cidr-address cidr_address_rangeregistered_edb_user 登録済みのEnterpriseDBユーザーの名前を指定します。登録するには、EDBウェブサイト( https://www.enterprisedb.com/user/register)をご覧ください。edb_user_password EDBユーザーアカウントに関連付けられたパスワードを指定します。cidr_address_range サーバによって監視されるエージェントからの接続を許可するために、PEMサーバのバッキングデータベースのpg_hba.confファイルに追加されるアドレス範囲を指定します。同じネットワーク上にあるエージェントへのサーバーアクセスを提供するために、ネットワーク範囲(192.168.2.0/24など)を指定したい場合があります。
pem-httpd- version -windows-x64.exe --mode unattended
postgresql- version -windows-x64.exe --mode unattendedpem-server-7. xx- windows-x64.exe --mode unattended
--existing-user registered_edb_user --existing-password edb_user_password --pgport port --pguser postgres
--pgpassword postgres -–cidr-address cidr_address_range
--agent_description pem-agent --systempassword windows_password
--agent-crt-path C:\edbregistered_edb_user 登録済みのEnterpriseDBユーザーの名前を指定します。登録するには、EDBウェブサイト( https://www.enterprisedb.com/user/register)をご覧ください。edb_user_password EDBユーザーアカウントに関連付けられたパスワードを指定します。cidr_address_range サーバによって監視されるエージェントからの接続を許可するために、PEMサーバのバッキングデータベースのpg_hba.confファイルに追加されるアドレス範囲を指定します。同じネットワーク上にあるエージェントへのサーバーアクセスを提供するために、ネットワーク範囲(192.168.2.0/24など)を指定したい場合があります。windows_password Windows管理者のアカウントに関連付けられているパスワードを指定します。
--pghost pem_server_host _ address --pgport pem_server_port
--pguser postgres --pgpassword pguser_password
--agent_description agent_namepguser_password PEMデータベースのスーパーユーザーに関連付けられているパスワードを指定します。agent_nameは、PEMエージェントのわかりやすい名前を指定します。
--pghost pem_server_host _ address --pgport pem_server_port
--pguser postgres --pgpassword pguser_password
--agent_description agent_namepguser_password PEMデータベースのスーパーユーザーに関連付けられているパスワードを指定します。agent_nameは、PEMエージェントのわかりやすい名前を指定します。
./pem-httpd- version -1-linux-x64.run --mode unattended
./postgresql- version -linux-x64.run --mode unattended
pem-httpd- version -windows-x64.exe --mode unattended
postgresql- version -windows-x64.exe --mode unattended----------------------------------------------------------------
Welcome to the Postgres Enterprise Manager (PEM) Server Setup Wizard.
----------------------------------------------------------------
Before installing the PEM server, you must review and accept the terms of the PEM license agreement:Please read the following License Agreement. You must accept the terms of this agreement before continuing with the installation.
Review the license agreement; when prompted, accept the agreement, and press Return.
Do you accept this license? [y/n]: y
----------------------------------------------------------------
使用許諾契約に同意すると、登録済みのEnterpriseDBユーザーの名前と住所を入力するよう求められます。プロンプトが表示されたら情報を提供する:Email address []:
Password :
----------------------------------------------------------------
次に、インストールディレクトリを求めるプロンプトが表示されます。デフォルトのインストールディレクトリを使用するか、別の場所を指定することができます。PEMサーバに既存のPostgresサーバインストールまたはPEM-HTTPDインストールを使用できるようにするメニューShow advanced optionsにアクセスするには、拡張Show advanced optionsをShow advanced options 後にYを入力します。Please specify user and password for the local server - 'PostgreSQL 10' installation running on port 5432.
User [postgres]:
Password :
----------------------------------------------------------------
プロンプトが表示されたら、 pg _ hba追加されるネットワークアドレスまたは範囲を入力します。 PEMサーバホストのconfファイル。これにより、監視対象ホスト上のPEMエージェントがサーバーに接続できます。Network address [127.0.0.1/32]:
----------------------------------------------------------------
[ Agent Detailsフィールドを使用して、 Agentのわかりやすい名前とエージェント証明書の場所を指定します。
3.4.4 テキストモードでのPEMエージェントインストーラの呼び出し-----------------------------------------------------------------
Postgres Enterprise Manager(PEM)エージェントセットアップウィザードへようこそ。
-----------------------------------------------------------------Before installing the PEM server, you must review and accept the terms of the PEM license agreement:デフォルトでは、PEMエージェントインストーラは %APPDATA%\pem ~root/.pem (Linuxの場合)またはAdministratorの%APPDATA%\pemディレクトリ(Windowsの場合)に証明書を配置します。 Show advanced optionsをShow advanced options後にYを入力して、証明書ファイルの代替パスを指定できるメニューShow advanced optionsにアクセスします。
どこで ip_address_of_PEM_host PEMサーバーのホストのIPアドレスを指定します。 Postgres Enterprise Manager Web Loginウィンドウ(図4.1を参照)が開きます。
PostgreSQLのプラグインをインストールする前に、以下のインストール手順に従って、 Configurationセクションに進みます。 Advanced Serverを使用している場合は、 Configurationセクションに進んでください。
5.1 SQLプロファイラのインストール適切なラジオボタンを強調表示して契約に同意する前に、ライセンス契約を慎重に確認してください。 [ Nextへ]をクリックして[ Installation Directory ]ダイアログ(図5.3)を続行します 。
5.2 SQLプロファイラの設定