...

IBM Mashup Center 2.0 IHSインストールガイド IBM Software Group 2009/12版 © 2008 IBM Corporation

by user

on
Category: Documents
20

views

Report

Comments

Transcript

IBM Mashup Center 2.0 IHSインストールガイド IBM Software Group 2009/12版 © 2008 IBM Corporation
IBM Software Group
IBM Mashup Center 2.0 IHSインストールガイド
2009/12版
© 2008 IBM Corporation
IBM Software Group
特記事項
ƒ 内容について、できる限り正確を期すよう努めてはおりますが、いかなる明示
または暗黙の保証も責任も負いかねます。
ƒ 掲載情報は不定期に変更されることもあります。他のメディア等に無断で転載
する事はご遠慮ください。
ƒ 本資料の著作権は日本IBMにあります。非営利目的の個人利用の場合にお
いて、自由に使用してもかまいませんが、営利目的の使用は禁止させていた
だきます。
ƒ この資料は単独ページでの配布、使用を禁止します。PDF全ページをセットで
配布、ご利用ください。
© 2008 IBM Corporation
IBM Software Group
セットアップする環境
ƒ シングルサーバー構成
ƒ IBM Mashup Center V2.0がフルインストールされている環境に、IBM HTTP
Server(IHS)を導入します。
– IBM Mashup Center V2.0 + IBM HTTP Server V7.0(IHS)
IBM Mashup Center導入サーバー
Webブラウザ
IE6 SP3,IE7,IE8(Windows only)
Firefox3.0,3.5(Windows and Linux)
Safari4.0(Mac OS only)
IBM HTTP
Server
V7.0
IBM
MashupCenter
V2.0
zIBM Mashup Centerは、同梱されているWebSphere
Application Server上で稼動するJavaEEアプリケーション
z内部リポジトリはRDBとしてDerbyを使用
© 2008 IBM Corporation
IBM Software Group
前提環境
ƒ オペレーティングシステム
– Microsoft Windows Server 2003, Enterprise Edition with Service Pack 1
(32-bit)
– Microsoft Windows Server 2003, Standard Edition with Service Pack 2
– Red Hat Enterprise Linux 5
ƒ 前提ハードウェア
– 上記OSが稼動するIAサーバー
• Intel® Pentium® (1 GHz or faster), Intel EM64T, or AMD Opteron
– 2GB以上のRAM
ƒ 前提ソフトウェア
– サーバー製品:IBM Mashup Center V2.0
• 本手順書は、IBM Mashup Centerが導入されている環境に、IHSを追加導入します。
– Webブラウザ
• Mozilla Firefox 3.0 ,3.5 (Windows and Linux)
• Internet Explorer 6 SP3, 7, 8(Windows only)
• Safari 4.0 (Mac OS only)
© 2008 IBM Corporation
IBM Software Group
事前準備
ƒ 決定しておくべき事項
– インストール先
• 例: C:¥Program Files¥ibm¥HTTPServer(デフォルト値)
– IHS管理者のIDとパスワード
• 本書では htadmin/passwordで進めます
ƒ メディアの入手
– IHSおよびプラグイン
• 本手順書の前提とするIBM Mashup Center V2.0のWebSphere Application
Server(WAS)のバージョンは、「7.0.0.5」となります。
– <MASHUPCENTER_ROOT>¥AppServer¥bin¥versionInfo.batを実行すると、
WASのバージョンが表示されます。
(注) <MASHUPCENTER_ROOT>は、IBM Mashup Centerの導入ディレクトリで、
デフォルトは、” C:¥Program Files¥ibm¥Mashup Center¥2.0”となります。
© 2008 IBM Corporation
IBM Software Group
事前準備
ƒ 今回使用したIHS、IHS(WAS) Plug-in導入イメージ
– IHS V7.0
• http://www-01.ibm.com/software/webservers/httpservers/の「
Download:Other release」のリンクより、IHS V7.0.0.0をダウンロード
– ihs.7000.windows.ia32.zip
– IHS(WAS) Plug-in
• 下記、サイトからダウンロード
• http://www14.software.ibm.com/webapp/download/preconfig.jsp?id=200907-30+10%3A21%3A30.828809R&S_TACT=104CBW71&S_CMP=
– 「WebServer Plugin for WebSphere Application Server」
> Product overview:WebSphere Application Server is the core Web services
and J2EE compatible application server with an array of deployment
configurations for distributed multi-server and enterprise environments.
> Version:7.0
> Language:English U.S.
– trial_plugins_7000_windows.ia32.zip
© 2008 IBM Corporation
IBM Software Group
事前準備
ƒ Webサーバ等の他のアプリケーションで、ポート番号:80とポート番号:8008
が使用されていない事を確認
– コマンドウィンドウで、netstat –anを実行
– 本手順書では、IHSのHTTPポート番号として80番、HTTP管理ポート番号
として、8008番を利用する前提の手順となっています。
© 2008 IBM Corporation
IBM Software Group
IHSインストール作業
© 2008 IBM Corporation
IBM Software Group
IBM Mashup Center停止の確認
ƒ Windowsのサービスから、以下のサービスが停止している事を確認
– IBM WebShpere Application Server V7.0 - <ホスト名>Node01
© 2008 IBM Corporation
IBM Software Group
インストーラの開始
ƒ IBM HTTP Server V7.0(IHS)のメディアを解凍
ƒ IHS Plug-inのメディアを解凍
– <IHS Plug-in解凍先フォルダ>¥plugin(フォルダ)を、
<IHS解凍先フォルダ>¥ihs.7000.windows.ia32以下にコピー
pluginフォルダのコピー
ƒ インストーラの起動
– <IHS解凍先フォルダ>¥ihs.7000.windows.ia32¥IHS¥install.exeをクリック
© 2008 IBM Corporation
IBM Software Group
ようこそ画面、使用条件
ƒ 表示された「ようこそ」画面で、「次へ」をクリック
ƒ 使用条件の条項への同意の可否を選択し、同意の場合、「次へ」をクリック
© 2008 IBM Corporation
IBM Software Group
インストール・ロケーションの入力/ポート値の割り当て
ƒ 導入ディレクトリを確認の上、「次へ」をクリック
ƒ HTTPポート番号(80)とHTTP管理ポート番号(8008)を確認の上、「次へ」をク
リック
© 2008 IBM Corporation
IBM Software Group
Windowsサービスの定義
ƒ Windowsの管理者IDとパスワードを入力して、「次へ」をクリック
– 設定の前に、指定する管理者ID(例:Administrator)には、下記のユーザー権限が指定して
ある事を確認して下さい。
• オペレーティング・システムの一部として機能
• サービスとしてログオン
© 2008 IBM Corporation
IBM Software Group
HTTP管理サーバー認証
ƒ IHSの管理者のIDとパスワードを入力します。
– <例> htadmin/password
© 2008 IBM Corporation
IBM Software Group
IHS Plug-inのインストール指定
ƒ デフォルト表示のまま、「次へ」をクリック
© 2008 IBM Corporation
IBM Software Group
インストールの要約、インストールの開始
ƒ 要約を確認し、「次へ」 をクリックしてインストールを開始します
© 2008 IBM Corporation
IBM Software Group
インストールの完了
ƒ 正常終了を確認し、「終了」をクリック
© 2008 IBM Corporation
IBM Software Group
WebServer構成スクリプトの実行
© 2008 IBM Corporation
IBM Software Group
WebServer構成スクリプトの実行
ƒ 「C:¥Program Files¥ibm¥HTTPServer¥Plugins¥bin」のconfigurewebserver1.batを、
C:¥Program Files¥ibm¥Mashup Center¥2.0¥mm_profile¥binにコピーします。
ƒ IBM Mashup Centerサーバーを起動します。
ƒ コマンドウィンドウで、 configurewebserver1.batを実行します。
– cd C:¥Program Files¥ibm¥Mashup Center¥2.0¥mm_profile¥bin
– 「configurewebserver1.bat 」を実行
• Mashup Centerの管理者ID/パスワードを入力(例:mcadmin/password)
• 「configuration save complete」と表示されるのを確認
ƒ IBM Mashup Centerサーバーを停止します。
ƒ httpd.confファイルの最終行のWebSpherePluginConfigパラメータを下記の様に変更
– httpd.confの場所:C:¥Program Files¥ibm¥HTTPServer¥config
– WebSpherePluginConfig "C:¥Program Files¥ibm¥Mashup
Center¥2.0¥mm_profile¥config¥cells¥sby82Node01Cell¥nodes¥sby82Node0
1¥servers¥webserver1¥plugin-cfg.xml"
© 2008 IBM Corporation
IBM Software Group
IHS経由で、Mashup Center(マッシュアップ・ビルダー)アクセス確認
ƒ Windowsのサービスから、下記、2つのサービスを開始します。
– IBM WebShpere Application Server V6.1 - <ホスト名>Node01
– IBM HTTP Administrator 7.0
– IBM HTTP Server 7.0
ƒ ブラウザで、下記URLにアクセスし、IHS経由でMashup Center(マッシュアップ・ビルダー)にア
クセスできる事を確認
– http://<IBM Mashup CenterサーバーFQDN>/mum/resources/bootstrap/login.jsp
© 2008 IBM Corporation
IBM Software Group
SSL設定
© 2008 IBM Corporation
IBM Software Group
サーバーの停止
ƒ
Windowsのサービスから、下記、2つのサービスが停止している事を確認
– IBM WebSphere Application Server V7.0
– IBM HTTP Administrator 7.0
– IBM HTTP Server 7.0
© 2008 IBM Corporation
IBM Software Group
httpd.confファイルの編集
ƒ
httpd.confを、下記のように追加変更します。
– httpd.confの場所:C:¥Program Files¥ibm¥HTTPServer¥config
# Example SSL configuration which supports SSLv3 and TLSv1
# To enable this support:
# 1) Create a key database with ikeyman
# 2) Update the KeyFile directive below to point to that key database
# 3) Uncomment the directives up through the end of the example
#
Note: The IPv6 Listen directive must only be uncommented if
#
IPv6 networking is enabled.
#
#LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
#Listen 0.0.0.0:443
## IPv6 support:
#Listen [::]:443
#<VirtualHost *:443>
#SSLEnable
#SSLProtocolDisable SSLv2
#</VirtualHost>
#KeyFile C:/Program Files/IBM/HTTPServer/ihsserverkey.kdb
#SSLDisable
# End of example SSL configuration
LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
© 2008 IBM Corporation
IBM Software Group
httpd.confファイルの編集
ƒ
httpd.confの編集(続き)
Listen 0.0.0.0:443
<VirtualHost *:443>
SSLEnable
SSLProtocolDisable SSLv2
SSLEnable
SSLClientAuth none
CustomLog logs/access_ssl.log common
ErrorLog logs/error_ssl.log
</VirtualHost>
KeyFile "C:¥Program Files¥ibm¥HTTPServer¥Plugins¥config¥webserver1¥plugin-key.kdb"
SSLStashfile "C:¥Program Files¥ibm¥HTTPServer¥Plugins¥config¥webserver1¥plugin-key.sth"
SSLDisable
SSLV3Timeout 1000
#
# Enable IBM HTTP Server diagnostic features.
#
# mod_mpmstats logs statistics about server activity to the main
# error log. No records are written while the server is idle.
LoadModule mpmstats_module modules/debug/mod_mpmstats.so
<IfModule mod_mpmstats.c>
# Write a record every 10 minutes (if server isn't idle).
# Recommendation: Lower this interval to 60 seconds, which will
(以下、略)
© 2008 IBM Corporation
IBM Software Group
WAS証明書のエクスポート
ƒ WAS IKEYMANの起動
– cd C:¥Program Files¥ibm¥Mashup Center¥2.0¥AppServer¥bin
– ikeyman.batの実行
© 2008 IBM Corporation
IBM Software Group
WAS証明書のエクスポート
ƒ
鍵データベースのオープン
– 「鍵データベース・ファイル」→「オープン」
– 表示されたポップアップウィンドウにて、以下を指定
•
•
•
鍵データベース・タイプ:PKCS12
ファイル名:key.p12(参照をクリック)
位置:C:¥Program Files¥ibm¥Mashup Center¥2.0¥mm_profile¥config¥cells¥<セル名>¥nodes¥<Node名>
–
–
例:C:¥Program Files¥ibm¥Mashup Center¥2.0¥mm_profile¥config¥cells¥sby82Node01Cell¥nodes¥sby82Node01
パスワード・プロンプトウィンドウにて、パスワード「WebAS」を入力
© 2008 IBM Corporation
IBM Software Group
WAS証明書のエクスポート
ƒ
証明書の抽出
– 「個人用証明書」をクリック
– 「証明書の抽出...」をクリック
– ファイルに証明書を抽出で、以下を入力し、OKをクリック
• データ型:Base64でエンコードされたASCIIデータ
• 証明書ファイル名:WASKeyP12cert.arm(参照をクリックして、ディレクトリ(位置)を指定後、ファイ
ル名を入力)
• 位置:C:¥sec¥
– WAS IKEYMANを終了
© 2008 IBM Corporation
IBM Software Group
IHS鍵キー・データベースへ証明書のインポート
ƒ IHS IKEYMANの起動
– プログラム→IBM HTTP Server V6.1 →Start Key Management Utilty
© 2008 IBM Corporation
IBM Software Group
IHS鍵キー・データベースへ証明書のインポート
ƒ
鍵データベースのオープン
– 「鍵データベース・ファイル」→「オープン」
– 表示されたポップアップウィンドウにて、以下を入力
• 鍵データベース・タイプ:CMS
• ファイル名:plugin-key.kdb(参照をクリック)
• 位置:C:¥Program Files¥ibm¥HTTPServer¥Plugins¥config¥webserver1¥plugin-key.kdb
– パスワード・プロンプトウィンドウにて、パスワード「WebAS」を入力
© 2008 IBM Corporation
IBM Software Group
IHS鍵キー・データベースへ証明書のインポート
ƒ
証明書の追加
– 「署名者証明書」をクリック
– 「追加」をクリック
– ファイルからCAの証明書を追加で、以下を入力し、OKをクリック
• データ型:Base64でエンコードされたASCIIデータ
• 証明書ファイル名:WASKeyP12cert.arm(参照をクリック)
• 位置:C:¥sec¥
© 2008 IBM Corporation
IBM Software Group
IHS鍵キー・データベースへ証明書のインポート
ƒ
証明書の追加(続き)
– 「ラベル名の入力」で、下記を入力し、OKをクリック
• WASKeyP12_Cert
– 証明書の追加を確認
– IKEYMANの終了
© 2008 IBM Corporation
IBM Software Group
server.config.iniの編集
ƒ
「server.config.ini」を、下記の様に変更
– 場所:C:¥Program Files¥ibm¥Mashup Center¥2.0¥Hub¥installedApps¥Mashup
Hub.ear¥mashuphub-enterprise.war¥META-INF¥config
– <変更内容>
• base.urlの変更
– base.url=https¥://sby82.tokyo.japan.ibm.com¥:9443/mashuphub/client
↓
– base.url=https¥://sby82.tokyo.japan.ibm.com/mashuphub/client
• ポート番号の変更
– app.server.ssl.port=9443
– app.server.http.port=9080
↓
– app.server.ssl.port=443
– app.server.http.port=80
© 2008 IBM Corporation
IBM Software Group
IHS経由で、Mashup Center(カタログ)アクセス確認
ƒ Windowsのサービスから、下記、2つのサービスを開始します。
– IBM WebShpere Application Server V7.0 - <ホスト名>Node01
– IBM HTTP Administrator 7.0
– IBM HTTP Server 7.0
ƒ ブラウザで、下記URLにアクセスし、IHS経由でMashup Center(カタログ)にアクセスできる事を
確認
– https://<IBM Mashup CenterサーバーFQDN>/mashuphub/client/layout/layout.html
© 2008 IBM Corporation
IBM Software Group
IHS Tuing
© 2008 IBM Corporation
IBM Software Group
IHS Tuning:パラメータの変更
ƒ
httpd.confを、下記のように変更します。
– 場所:C:¥Program Files¥ibm¥HTTPServer¥config
(中略)
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
#MaxKeepAliveRequests 100
MaxKeepAliveRequests 0
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
#KeepAliveTimeout 10
KeepAliveTimeout 5
© 2008 IBM Corporation
IBM Software Group
IHS Tuing:パラメータの変更
ƒ
httpd.confの編集(続き)
(中略)
#
# Windows NT MPM Configuration
# ThreadLimit: max setting allowed for ThreadsPerChild.
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum number of requests a server process serves
#
#<IfModule mpm_winnt.c>
# ThreadLimit 2048
# ThreadsPerChild 250
# MaxRequestsPerChild 0
#</IfModule>
<IfModule mpm_winnt.c>
ThreadLimit 2048
ThreadsPerChild 800
MaxRequestsPerChild 0
</IfModule>
© 2008 IBM Corporation
IBM Software Group
IHS Tuning:パラメータの変更
ƒ
httpd.confの編集(続き)
(中略)
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
(中略)
#LoadModule headers_module modules/mod_headers.so
LoadModule headers_module modules/mod_headers.so
SetEnvIfNoCase Request_URI (?:mum/widgetcatalog/|mum/undefined/js/|mum/registry/|mum/themes/|mum/js/|mum/images/|mum/com.ibm.cit.iwidegets.charts/|mum
/_combinded.css) file-path
Header set Cache-Control max-age=86400 env=file-path
SetEnvIfNoCase Request_URI (?:mashuphub/client/images|mashuphub/client/other|mashuphub/client/styles) hub-filepath
Header set Cache-Control max-age=86400 env=hub-file-path
LoadModule deflate_module modules/mod_deflate.so
AddOutputFilterByType DEFLATE application/x-javascript
© 2008 IBM Corporation
Fly UP