Amazon Web Services(AWS)でWebLogic環境構築(インストール編)



AWS上にWebLogicの環境を構築し、インターネットにサンプルアプリを公開するところまでをやる(たぶん)。


Oracle社より、WebLogicインストール済みのAMIが既に公開されている。AMI IDはami-6a917603、Manifestはoracle-corporation/weblogic-ami/32-bit/oracle_weblogic10gR3_v10_i386_image.manifest.xmlである。


・・・で、起動してみたのだが、環境がちょっと気に入らなかったので、後学のため1からインストールすることにした。
OSはCentOS5。


■ダウンロード系
WebLogicOracleのサイトより。今回は、x86 Linux版のOracle WebLogic Server 10.3 - Package Installerを使った。
http://www.oracle.com/technology/global/jp/software/products/ias/htdocs/wls_main.html


フロント用に、Apacheもダウンロードしてインストールしておく。


■インストール準備系
WebLogic起動ユーザをつくる。

groupadd -g 701 weblogic
useradd -u 701 -g weblogic -d /home/weblogic -m -s /bin/sh weblogic

ディレクトリも。

mkdir /opt/oracle/src インストールモジュールを入れておく
mkdir /opt/oracle/app バイナリと管理サーバのインストールディレクトリ
mkdir /opt/oracle/weblogic ドメインとか



■インストール系
weblogicユーザでインストールモジュールを実行。CUIでやる。

./server103_ccjk_linux32.bin



Next。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Welcome:

              • -

This installer will guide you through the installation of WebLogic Platform 10.3.0.0.
Type "Next" or enter to proceed to the next prompt. If you want to change data
entered previously, type "Previous". You may quit the installer at any time by typing "Exit".




Enter [Exit][Next]> Next



WebLogicのホームディレクトリを入力。今回は/opt/oracle/app。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Choose BEA Home Directory:

                                                  • -

"BEA Home" = [Enter new value or use default "/home/weblogic/bea"]




Enter new BEA Home OR [Exit][Previous][Next]> /opt/oracle/app



Next。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Choose BEA Home Directory:

                                                  • -

"BEA Home" = [/opt/oracle/app]

Use above value or select another option:
1 - Enter new BEA Home
2 - Change to default [/home/weblogic/bea]




Enter option number to select OR [Exit][Previous][Next]> Next



今回はCustomなので2を入力。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Choose Install Type:

                                      • -

Select the type of installation you wish to perform.

->1|Complete
| Install the following software products and examples:
| - WebLogic Server
| - Workshop

2|Custom
| Choose software products and components to install and perform optional
|configuration.





Enter index number to select OR [Exit][Previous][Next]> 2



WebLogic Server」とその配下だけ選択(xがついた状態)して、「Workshop」の選択は解除(xが消えた状態)したい。先ずは1。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Choose Products and Components:

                                                            • -

Release 10.3.0.0
|_____WebLogic Server [1] x
| |_____Core Application Server [1.1] x
| |_____Administration Console [1.2] x
| |_____Configuration Wizard and Upgrade Framework [1.3] x
| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
| |_____WebLogic JDBC Drivers [1.5] x
| |_____Third Party JDBC Drivers [1.6] x
| |_____WebLogic Server Clients [1.7] x
| |_____WebLogic Web Server Plugins [1.8] x
| |_____UDDI and Xquery Support [1.9] x
| |_____Server Examples [1.10] x
|_____Workshop [2] x
|_____Workshop for WebLogic [2.1] x
|_____Workshop Runtime Framework [2.2] x

*Estimated size of installation: 1,042.2 MB




Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1



xが全部消える(何も選択されていない)ので、再度1。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Choose Products and Components:

                                                            • -

Release 10.3.0.0
|_____WebLogic Server [1]
| |_____Core Application Server [1.1]
| |_____Administration Console [1.2]
| |_____Configuration Wizard and Upgrade Framework [1.3]
| |_____Web 2.0 HTTP Pub-Sub Server [1.4]
| |_____WebLogic JDBC Drivers [1.5]
| |_____Third Party JDBC Drivers [1.6]
| |_____WebLogic Server Clients [1.7]
| |_____WebLogic Web Server Plugins [1.8]
| |_____UDDI and Xquery Support [1.9]
| |_____Server Examples [1.10]
|_____Workshop [2]
|_____Workshop for WebLogic [2.1]
|_____Workshop Runtime Framework [2.2]

*Estimated size of installation: 0.0 KB




Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1

WebLogic Server」だけ選択されたので、Next。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Choose Products and Components:

                                                            • -

Release 10.3.0.0
|_____WebLogic Server [1] x
| |_____Core Application Server [1.1] x
| |_____Administration Console [1.2] x
| |_____Configuration Wizard and Upgrade Framework [1.3] x
| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
| |_____WebLogic JDBC Drivers [1.5] x
| |_____Third Party JDBC Drivers [1.6] x
| |_____WebLogic Server Clients [1.7] x
| |_____WebLogic Web Server Plugins [1.8] x
| |_____UDDI and Xquery Support [1.9] x
| |_____Server Examples [1.10] x
|_____Workshop [2]
|_____Workshop for WebLogic [2.1]
|_____Workshop Runtime Framework [2.2]

*Estimated size of installation: 477.2 MB




Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next



WebLogicが使うJDKは、JRockitを使う。
さっきコンポーネントを選んだときと同じ要領で、3のjrockitにだけxがついた状態にする。
以下の状態になったら、Next。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

JDK Selection (Any * indicates BEA Supplied VM):

                                                                                              • -

JDK(s) chosen for use with this product installation will be installed. Supported defaults if not deselected will be used in script string-substitution.

1|Add Local Jdk
2|/opt/oracle/app/jdk160_05[ ]*
3|/opt/oracle/app/jrockit_160_05[x]*



*Estimated size of installation: 669.9 MB


Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> Next



管理サーバのインストールディレクトリを指定。/opt/oracle/app/wlserver_10.3。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Choose Product Installation Directories:

                                                                              • -

BEA Home Directory: [/opt/oracle/app]

Product Installation Directories:


"WebLogic Server" = [/opt/oracle/weblogic/wlserver_10.3]

Use above value or select another option:
1 - Enter new WebLogic Server
2 - Change to default [/opt/oracle/app/wlserver_10.3]




Enter option number to select OR [Exit][Previous][Next]> /opt/oracle/app/wlserver_10.3



Next。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Choose Product Installation Directories:

                                                                              • -

BEA Home Directory: [/opt/oracle/app]

Product Installation Directories:


"WebLogic Server" = [Enter new value or use default
"/opt/oracle/app/wlserver_10.3"]




Enter new WebLogic Server OR [Exit][Previous][Next]> Next



確認メッセージ。Next。

<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

The following Products and JDKs will be installed:

                                                                                                  • -

WebLogic Platform 10.3.0.0
|_____WebLogic Server
| |_____Core Application Server
| |_____Administration Console
| |_____Configuration Wizard and Upgrade Framework
| |_____Web 2.0 HTTP Pub-Sub Server
| |_____WebLogic JDBC Drivers
| |_____Third Party JDBC Drivers
| |_____WebLogic Server Clients
| |_____WebLogic Web Server Plugins
| |_____UDDI and Xquery Support
| |_____Server Examples
|_____JDKs
|_____BEA JRockit 1.6.0_05 SDK

*Estimated size of installation: 670.0 MB




Enter [Exit][Previous][Next]> Next



Conglatulations!と出たらExit。

Jun 24, 2009 11:11:34 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.





<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Installing files..

0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]




<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Installing JDK....

0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]


Performing String Substitutions...



Creating Domains...





<------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ------------------>

Installation Complete


Congratulations! Installation is complete.


Press [Enter] to continue or type [Exit]> Exit



これでインストールは完了。
長くなったので、ドメインの作成は次のエントリに。