5.3. Enterprise Web Serverの展開、インストール


Enterprise Web Server の展開、インストールは、ZIPとSolarisパッケージでは異なってきます。ダウンロードしたリソースによって、手順5.3「ZIPファイルからEnterprise Web Serverを展開、インストール」 か、 手順5.4「Solaris パッケージからEnterprise Web Serverを展開、インストール」に移動してください。

手順5.3 ZIPファイルからEnterprise Web Serverを展開、インストール

この手順に従い、a ZIPファイルからJBoss Enterprise Web Serverをインストールします。
  1. シェルプロンプトでroot ユーザーになります。
  2. ZIPファイルのあるディレクトリに移動します。
  3. 以下のコマンドを実行し、パッケージをoptへ移動します。
    # unzip <FILE_NAME> -d /opt
    Copy to Clipboard Toggle word wrap
    <FILE_NAME>をダウンロードしたZIPファイルの名前で置き換えてください。
  4. 以下のコマンドを発行しpost-installation スクリプトを実行します。
    cd /opt/redhat/ews/etc
    sh .postinstall
    Copy to Clipboard Toggle word wrap
    post installation プロセスでTomcatおよびApache ユーザーおよびグループ、ディレクトリが作成されます。
    • ユーザーおよびグループapache はID48、tomcat はID91です。apacheユーザーはhttpdを、tomcattomcatを作動させるのに利用されます。
    • tomcat グループが書き込み権限を持つその他のディレクトリは以下のとおりです。
      • /var/logs/tomcat5
      • /var/logs/tomcat6

手順5.4 Solaris パッケージからEnterprise Web Serverを展開、インストール

インストール開始前に、システムにroot アクセスがあり、利用中のSolaris バージョンおよびアーキテクチャー向けのSolaris パッケージをダウンロードしているよう確認してください (「インストレーションファイルをダウンロード」 参照)。
Solaris パッケージからインストールすると、システムはJBoss Enterprise Web Serverを自動的に/opt/redhat/ews ディレクトリにインストールします。インストールの一部として、パッケージインストーラはカスタムのスクリプトを実行し、Apache およびTomcatユーザーアカウントを設定します。
この手順に従い、Solaris パッケージからJBoss Enterprise Web Serverをインストールします。
  1. シェルプロンプトでroot ユーザーになります。
  2. 以下のgunzip および pkgadd コマンドを実行し、パッケージを展開およびインストールします。
    gunzip RHATews-1.0.*
    Copy to Clipboard Toggle word wrap
    pkgadd -d RHATews-1.0.*
    Copy to Clipboard Toggle word wrap
    このコマンドは以下のような出力を返します。
    The following packages are available:
    1  RHATews     JBoss Enterprise Web Server (i386) 1.0.0,REV=2.el5
    
    Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]:
    
    Copy to Clipboard Toggle word wrap
  3. 1 をタイプするか、enter を押しインストールを確定すると、以下の情報が表示されます。
    JBoss Enterprise Web Server(i386) 1.0.0,REV=2.GA
    
    
    END USER LICENSE AGREEMENT
    JBOSS(r) ENTERPRISE MIDDLEWARE(tm)
    
    The end user license agreement ("EULA") governs the use of the various software modules that collectively comprise JBoss Enterprise Middleware
    and any related updates, source code, appearance, structure and organization,
    regardless of the delivery mechanism.
    
    The JBoss Enterprise Middleware EULA can be found here:
    http://www.redhat.com/licenses/jboss_eula.html
    
    
    ## Executing checkinstall script.
    Using </opt> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    ## Verifying disk space requirements.
    ## Checking for conflicts with packages already installed.
    ## Checking for setuid/setgid programs.
    
    This package contains scripts which will be executed with super-user
    permission during the process of installing this package.
    
    Do you want to continue with the installation of <RHATews> [y,n,?]
    
    Copy to Clipboard Toggle word wrap
  4. インストール確定のプロンプトが表示され、yを入力しenterを押すと、インストールが開始され以下が表示されます。
    ## Executing postinstall script.
    Apache group (id=48) already exists. +++ or created if not
    Apache user  (id=48) already exists.
    Generating private RSA key ... OK
    Generating new (+++ user hostname displayed here) certificate ... OK
    Tomcat group (id=91) already exists.
    Tomcat user  (id=91) already exists.
    
    -----------------------------------------------------------------------
    NOTICE
    -----------------------------------------------------------------------
    
    JAVA_HOME environment variable is not set.
    Either set the  JAVA_HOME  or edit the configuration
    scripts inside `/opt/redhat/ews/etc/sysconfig' directory
    and set the JAVA_HOME to the installed JDK location.
    
    
    Installation of <RHATews> was successful.
    
    Copy to Clipboard Toggle word wrap
  5. 以下のコマンドを実行し、パッケージ情報を表示します。
    pkginfo -l RHATews
    
    Copy to Clipboard Toggle word wrap

    注記

    インストール時にシステムはJAVA_HOME の環境変数が設定されていないとの通知を生成します。この変数を稼働させたいTomcat向けに設定する必要があります (手順5.5「Tomcatの設定」の章を参照)。
  6. 該当のTomcatのバージョンで以下のコマンドを入力しcatalina.sh スクリプトを実行します。
    /opt/redhat/ews/share/tomcat<VERSION>/bin/catalina.sh
    
    Copy to Clipboard Toggle word wrap
    catalina.sh スクリプトは、作動中のJVMバージョンを検知し、/opt/redhat/ews/libパス( 64 bit JVMは /opt/redhat/ews/lib64) をライブラリパスへ追加します。
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat