インストールとアンインストール

インストール、アンインストールを行うには、製品に同梱している CD-ROM をマシンにセットしてください。 なお、インストール、アンインストールは root ユーザで行う必要があります。

事前確認

PowerGres のインストールには以下のパッケージが必要です。これらは事前にインストールしておいてください。

インストールの手順

  1. インストールスクリプトを実行します。

    # sh (CD-ROMをマウントしたディレクトリ)/install.sh
    
  2. 使用許諾契約書の内容が表示されます。 よくお読みの上、同意される場合は「yes」と入力します。

    Do you agree to the license terms (yes/no): yes
    
  3. ライセンスキーを入力します。 ライセンスキーは箱に同梱されているライセンスキーを入力してください。

    Please enter the license key (XXXX-XXXX-XXXX-XXXX): XXXX-XXXX-XXXX-XXXX
    
  4. PowerGres Administration Tool にログインするためのユーザ名、パスワードを入力します。

    Please enter username and password to login to administration tool.
    
    Username [admin]:
    Password: (パスワードを入力)
    Confirm password: (もう一度同じパスワードを入力)
    
  5. PowerGres Administration Tool で使用するポート番号を入力します。

    Please enter port numbers used for administration tool.
    
    HTTP port number [80]:
    HTTPS port number [443]:
    
  6. インストールが開始されます。 インストール時に postgres ユーザが存在しなければ、自動的に作成されます。

    Installing packages for database server...
    準備しています...              ################################# [100%]
    更新中 / インストール中...
       1:powergresplus94-libs-9.4.5-1.el7 ################################# [ 14%]
       2:powergresplus94-9.4.5-1.el7      ################################# [ 29%]
       3:powergresplus94-contrib-9.4.5-1.e################################# [ 43%]
       4:powergresplus94-devel-9.4.5-1.el7################################# [ 57%]
       5:powergresplus94-pwg_stat_snapshot################################# [ 71%]
       6:powergresplus94-server-9.4.5-1.el################################# [ 86%]
       7:powergresplus94-docs-9.4.5-1.el7 ################################# [100%]
    
    Installing packages for administration tool...
    準備しています...              ################################# [100%]
    更新中 / インストール中...
       1:powergresadmin-nginx-1.6.3-1.el7 ################################# [ 20%]
       2:powergresadmin-libmcrypt-2.5.8-1.################################# [ 40%]
       3:powergresadmin-php-5.5.30-1.el7  ################################# [ 60%]
       4:powergresadmin-1.1.0-1.el7       ################################# [ 80%]
       5:powergresadmin-devel-1.1.0-1.el7 ################################# [100%]
    
  7. ライセンスキーがインストールされます。

    Installing license key... Done.
    
  8. PowerGres Administration Tool のユーザとサーバプロファイルが作成されます。

    Changing configuration for administration tool... Done.
    
    Creating user for administration tool... Done.
    
    Creating server profile for administration tool... Done.
    
  9. PowerGres Administration Tool が起動されます。

    Starting administration tool... Done.
    
  10. 最後に以下のメッセージが表示されれば、インストールは完了です。

    PowerGres Plus (Linux) 9.4 installation completed.
    
  11. PowerGres を使用する (データベースを実行し、管理する) ユーザの ~/.bash_profile に以下の行を追加してください。

    LD_LIBRARY_PATH=/opt/powergresplus94/lib:$LD_LIBRARY_PATH
    PATH=/opt/powergresplus94/bin:$PATH
    MANPATH=/opt/powergresplus94/share/man:$MANPATH
    export LD_LIBRARY_PATH PATH MANPATH
    

    データベースを使える状態にするには、サーバの登録 (データベースクラスタの作成)、サービスの起動、という手順が必要です。 詳しくは「PowerGres Administration Tool マニュアル」を参照ください。

インストール後の構成

PowerGres のインストールが完了すると、以下の RPM パッケージがインストールされます。

powergresplus94

クライアントプログラムとライブラリ

powergresplus94-libs

クライアントから必要とされる共有ライブラリ

powergresplus94-server

サーバを生成して起動するのに必要なプログラム

powergresplus94-docs

ドキュメント (このマニュアルも /usr/share/doc/powergresplus94-docs-バージョン/manual ディレクトリにインストールされます)

powergresplus94-contrib

コントリビュートされた追加モジュール

powergresplus94-devel

開発向けヘッダファイルとライブラリ

powergresadmin
powergresadmin-devel
powergresadmin-nginx
powergresadmin-php
powergresadmin-libmcrypt

PowerGres Administration Tool (管理ツール) とその関連パッケージ

powergresplus94-pwg_stat_snapshot

統計情報のスナップショットを取得するモジュール

なおインストールされるパッケージは、Red Hat Enterprise Linux 向けのものと CentOS 向けのものとで共通となります。

以下のパッケージは自動的にインストールされません。

powergresplus94-test

テストスイート

powergresplus94-plperl

PL/Perl (Perl 手続き言語)

powergresplus94-plpython

PL/Python (Python 手続き言語)

powergresplus94-pltcl

PL/Tcl (Tcl 手続き言語)

powergresplus94-jdbc

JDBC ドライバ

上記のパッケージが必要な場合には手動でインストールしてください。

# cd (CD-ROMをマウントしたディレクトリ)/packages/(OSに対応したディレクトリ)
# rpm -ivh (パッケージのファイル名)
準備中...                ########################################### [100%]
   1:(パッケージ名)         ########################################### [100%]

OS に対応したディレクトリは以下のとおりです。

OS ディレクトリ
Red Hat Enterprise Linux 7 (x64)
CentOS 7 (x64)
el7-x86_64
Red Hat Enterprise Linux 6 (x64)
CentOS 6 (x64)
el6-x86_64

アンインストールの手順

  1. アンインストールスクリプトを実行します。

    # sh (CD-ROMをマウントしたディレクトリ)/uninstall.sh
    
  2. アンインストールを確認するメッセージが表示されるので、よろしければ「yes」と入力します。

    Do you uninstall PowerGres Plus (Linux) 9.4 (yes/no): yes
    
  3. アンインストールが開始されます。

    Uninstalling packages for administration tool... Done.
    
    Uninstalling packages for database server... Done.
    
  4. 最後に以下のメッセージが表示されれば、アンインストールは完了です。

    PowerGres Plus (Linux) 9.4 uninstallation completed.