1 はじめに
1.1 新機能
以下の説明では、 用語は、言語キーワード、ユーザー指定の値、リテラルなどである任意の単語または単語のグループを指します。用語の正確な意味は、それが使用される文脈によって異なります。
PEMワーカー(:PEMエージェントインストーラは、2つの実行作成 pemworker 。 exe )とPEMエージェント( pemagent 。 exe )。各PEMワーカーには、PEMワーカーを起動または停止するために使用できる対応するPEMエージェントがあります。 PEMエージェントは、PEMワーカーが突然終了した場合も再起動します。PEMワーカーログファイルには、PEMワーカーのアクティビティ(プローブアクティビティ、ハートビート応答など)に関する情報が含まれており、/ var / log / /var/log/pem/worker.log 保存されています。
2.2 ハードウェアの前提条件
2.3 ソフトウェアの前提条件pg_hba.confファイルはPostgresサーバーへの接続を管理します。あなたはそれを確認する必要があります 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権限になり、次のコマンドを呼び出します。WindowsにPEMコンポーネントをインストールしている場合は、 Administrative権限でPEMインストーラを起動する必要があります 。管理者権限を使用してインストーラを起動するには、インストーラアイコンを右クリックしてコンテキストメニューから[ Administrator as Run ]を選択します。現時点では、PEMサーバとWebインターフェイスは、 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 ダイアログ
3.1.2.1 データベースホストの指定[ Advanced options ]ダイアログ(図3.17)で[ Database ]オプションを選択すると、PEMサーババックエンドデータベース( pemという名前)が存在するホストの接続情報を指定できます。[ Database Server Selection ]ダイアログのドロップダウンリストボックス (図3.18を参照)を使用して、PEMサーババックエンドデータベース用のホストを選択します。あなたはできる:
3.1.2.2 Webサービスのインストール[ Advanced options ]ダイアログ(図3.26)の[ Web Services ]ラジオボタンを選択すると、 PEMサーバインストーラは現在のホストにPEM-HTTPDをインストールするか、既存のPEM-HTTPDインストールを更新するように指示します。
PEMサーバーと pemデータベースをホストするために、既存のPostgresサーバー(バージョン9.3以降)を使うことができます。 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サービスのカスタマイズについては、次のURLにアクセスしてください。Windowsを使用してPEMバックエンドデータベースをホストしている場合は、Postgresサーバの名前をWindowsのサービスマネージャに登録する必要があります。 EnterpriseDBインストーラを使用して作成されたPostgresサーバーを使用している場合、サービスは自動的に登録されます。手動でインストールを構築している場合は、Postgresのpg_ctlコマンドのregister句を使用してサービスを登録できます。コマンドの構文は次のとおりです。user_nameは、PostgresインストールディレクトリにアクセスしてPostgresサービスを開始するのに十分な特権を持つオペレーティングシステムユーザの名前を指定します。data_directoryはPostgresデータディレクトリの場所を指定します。使用方法の詳細について pg_ctlコマンドと利用可能なコマンドオプションを、利用可能にPostgresのコアドキュメントを参照してください。
3.1.3.2 PEMサーバインストーラの起動適切なラジオボタンを強調表示して契約に同意する前に、使用許諾契約を慎重に確認してください(図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 , visit: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- -server-optional-rpms 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 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.2.1 SLESホストへのインストール
3.3 PEMエージェントのインストール[ Setup…ページが開き、PEMエージェントのインストーラに案内されます(図3.43を参照)。適切なラジオボタンを強調表示して契約に同意する前に、使用許諾契約を慎重に確認してください(図3.44を参照)。 Nextをクリックして「 Installation Directoryダイアログに進みます 。デフォルトでは、PEMエージェントは /home/opt/PEMディレクトリにインストールされてい /home/opt/PEM 。 PEMエージェントの代替インストールディレクトリを指定して、デフォルトのインストールディレクトリをそのまま使用することも、[ Installation Directoryフィールドの内容を変更することもできます(図3.45を参照)。デフォルトでは、PEMエージェントインストーラは %APPDATA%\pem ~root/.pem (Linuxの場合)またはAdministratorの%APPDATA%\pemディレクトリ(Windowsの場合)に証明書を配置します。証明書ファイルの代替パスを指定できるダイアログをPEMエージェントインストーラに含めるように指定するには、[ Show advanced optionsを表示]ボックスをオンにします。
Linuxシステムでは、 yumパッケージマネージャを使用してPEMエージェントをインストールできます 。パッケージマネージャを使用してPEMエージェントをインストールする前に、ホストに次のパッケージが含まれている必要があります。edb-repoパッケージは、(名前のリポジトリの設定ファイルを作成edb.repo )。 edb.repoファイルは、EnterpriseDB.comでホストされている複数のリポジトリを定義します。
3.3.3 SLESホストへのインストール
3.3.4 エージェントを登録する各PEMエージェントはPEMサーバに登録する必要があります。登録プロセスでは、PEMサーバがエージェントと通信するために必要な情報をPEMサーバに提供します。 PEMエージェントのグラフィカルインストーラはエージェントの自己登録をサポートしていますが、グラフィカルインストール中にPEMエージェントの登録をスキップする場合、またはRPMパッケージを使用してPEMエージェントをインストールする場合は、 pemworkerユーティリティを使用してエージェントを登録できます。RPMインストーラはPEMエージェントを /usr/pem/agent/binディレクトリに配置します。エージェントを登録するには、 pemworkerユーティリティを起動するときに登録の詳細と一緒に--register-agentキーワードをpemworkerます。
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 registered_edb_user --existing-password edb_user_password --pgport port --pguser postgres
--pgpassword postgres -–cidr-address cidr_address_rangeregistered_edb_user 登録済みのEnterpriseDBユーザーの名前を指定します。登録するには、EDBのWebサイト( 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のWebサイト( 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エージェントを説明する名前を指定します。
3.4.3 テキストモードでの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 :
----------------------------------------------------------------
次に、インストールディレクトリの入力を求められます。デフォルトのインストールディレクトリを使用するか、別の場所を指定できます。[ Show advanced optionsを表示]の後にYを入力すると、既存のPostgresサーバーインストールまたはPEMサーバーでのPEM-HTTPDインストールを使用できるメニューShow advanced optionsにアクセスできます。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の説明的な名前とエージェント証明書の場所を指定します。
インストーラを起動する前に、SE Linuxを無効にする必要があります。詳細はセクション 2.3を 参照してください 。 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を入力します。
どこ ip_address_of_PEM_host PEMサーバのホストのIPアドレスを指定します。 Postgres Enterprise Manager Web Loginウィンドウ(図4.1に表示)が開きます。
以下のインストール手順に従ってPostgreSQL用のプラグインをインストールしてから Configurationセクションに進んでください。 Advanced Serverを使用している場合は、「 Configurationセクションに進んでください。
5.1 SQLプロファイラのインストール
5.2 SQLプロファイラの設定