安装准备
下载WebLogic10.2 for x86 linux安装文件;
安装RHEL 5.4;
检查Linux环境,确保安装目录所在的文件系统空闲空间在2G以上。如果空间不足,则应扩展root空间,或创建一个新的文件系统,并确保该文件系统空间在2G以上,本例将安装weblogic文件到/bea目录下
安装过程
创建bea组和weblogic用户
使用root登录操作系统,执行下列命令创建bea组和weblogic用户。bea组号为600,weblogic用户号为600,属于bea组,home目录为/bea。
# groupadd -g 600 bea
# useradd -d /bea -u 600 -g 600 weblogic
# passwd weblogic -- 激活weblogic用户
执行下列命令将/bea分配给weblogic用户。
# cd /
# chown weblogic:bea /bea
# chmod 755 /bea
上传安装文件并执行
使用weblogic登录,使用bin模式,上传WebLogic安装文件server102_linux.bin到soft目录,执行下列命令执行安装文件。
$ cd /soft
$ chmod a+x server103_linux.bin
由于控制台安装不受任何限制,使用下面命令,系统将自动解压缩安装文件,并启动文本的安装界面。
$ ./server1002_linux32.bin -mode=console
Extracting 0%....................................................................................................100%
<------------------------ BEA Installer - BEA Products ----------------------->
Welcome:
--------
This installer will guide you through the installation of BEA Products. 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的安装目录
<------------------------ BEA Installer - BEA Products ----------------------->
Choose BEA Home Directory:
--------------------------
"BEA Home" = [Enter new value or use default "/home/weblogic/bea"]
Enter new BEA Home OR [Exit][Previous][Next]> /bea
<------------------------ BEA Installer - BEA Products ----------------------->
Choose BEA Home Directory:
--------------------------
"BEA Home" = [/bea]
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
<------------------------ BEA Installer - BEA Products ----------------------->
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
选择要安装的产品组件
<------------------------ BEA Installer - BEA Products ----------------------->
Choose Components to install:
-----------------------------
Release 10.2.1.0
|_____WebLogic Server [1] x
| |_____Server [1.1] x
| |_____Server Examples [1.2] x
| |_____Server Add-ons [1.3] x
|_____Workshop [2] x
|_____Workshop for WebLogic [2.1] x
|_____Workshop Runtime Framework [2.2] x
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> next
选择是否安装Eclipse
<------------------------ BEA Installer - BEA Products ----------------------->
Install Eclipse Options:
------------------------
Install BEA installer bundled Eclipse or use the existing Eclispe.
->1|Install Eclipse
|
| Installer will use the BEA installer bundled
|Eclipse kit and installs it to:
|"/bea/tools/eclipse_pkgs/1.1/eclipse_3.2.2/eclipse"
2|Use Existing Eclipse
|
| Do not install the installer bundled Eclipse.
|I will specify Eclipse Home to use.
Enter index number to select OR [Exit][Previous][Next]> 1
<------------------------ BEA Installer - BEA Products ----------------------->
Choose Product Installation Directories:
----------------------------------------
"Default Product Home" = [Enter new value or use default
"/bea/wlserver_10.0"]
Enter new Default Product Home OR [Exit][Previous][Next]> next
安装确认
<------------------------ BEA Installer - BEA Products ----------------------->
Choose Product Installation Directories:
----------------------------------------
BEA Home Directory: [/bea]
Product Installation Directories:
1|Default Product Home: [/bea/wlserver_10.0]
2|Workshop: [/bea/workshop_10.2]
Enter index number to select OR [Exit][Previous][Next]> next
<------------------------ BEA Installer - BEA Products ----------------------->
Installing files..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
<------------------------ BEA Installer - BEA Products ----------------------->
Installing JDK....
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
Performing String Substitutions...
Creating Domains...
安装结束
<------------------------ BEA Installer - BEA Products ----------------------->
Installation Complete
Congratulations! "BEA Products" has been successfully installed.
Press [Enter] to continue or type [Exit]> exit
<------------------------ BEA Installer - BEA Products ----------------------->
Clean up process in progress ...
配置管理服务器的域
AdminServer Name: AdminServer
Listen Address: 192.168.0.111
Listen Port: 8080
SSL Listen Port: 8081
SSL enabled: true
Domain Name: weblogic
运行Configuration Wizard
$/bea/wlserver_10.2/common/bin/config.sh -mode=console
§2.3.2 选择创建新域
<-------------------- Oracle WebLogic Configuration Wizard ------------------->
Welcome:
--------
Choose between creating and extending a domain. Based on your selection,
the Configuration Wizard guides you through the steps to generate a new or
extend an existing domain.
->1|Create a new WebLogic domain
| Create a WebLogic domain in your projects directory.
2|Extend an existing WebLogic domain
| Extend an existing WebLogic domain. Use this option to add
|applications and services, or to override existing database access (JDBC)
|and messaging (JMS) settings. You can also incorporate additional
|functionality in your domain, for example, by including AquaLogic Service
|Bus.
Enter index number to select OR [Exit][Next]> 1
选择域源
<-------------------- Oracle WebLogic Configuration Wizard ------------------->
Select Domain Source:
---------------------
Select the source from which the domain will be created. You can create the
domain by selecting from the required components or by selecting from a
list of existing domain templates.
->1|Choose Weblogic Platform components
| You can choose the Weblogic component(s) that you want supported in
|your domain.
2|Choose custom template
| Choose this option if you want to use an existing template. This
|could be a custom created template using the Template Builder.
Enter index number to select OR [Exit][Previous][Next]> 1
<-------------------- Oracle WebLogic Configuration Wizard ------------------->
Application Template Selection:
-------------------------------
Available Templates
|_____WebLogic Server (Required)x
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> next
配置管理员及密码
<-------------------- Oracle WebLogic Configuration Wizard ------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *User name: | weblogic |
2| *User password: | |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |
Use above value or select another option:
1 - Modify "User name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
Enter option number to select OR [Exit][Previous][Next]> 2
<-------------------- Oracle WebLogic Configuration Wizard ------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.
"*User password:" = []
Enter new *User password: OR [Exit][Reset][Accept]>
<-------------------- Oracle WebLogic Configuration Wizard ------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *User name: | weblogic |
2| *User password: | *********** |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |
Use above value or select another option:
1 - Modify "User name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 3
<-------------------- Oracle WebLogic Configuration Wizard ------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.
"*Confirm user password:" = []
Enter new *Confirm user password: OR [Exit][Reset][Accept]>
<-------------------- Oracle WebLogic Configuration Wizard ------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *User name: | weblogic |
2| *User password: | *********** |
3| *Confirm user password: | *********** |
4| Description: | This user is the default administrator. |
Use above value or select another option:
1 - Modify "User name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes
注意:weblogic 10g以后的密码不能为纯英文
选产品模式+JRockitJDK
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Java SDK Selection:
-------------------
->1|JRockit SDK 1.5.0_15 @ /bea/jrockit_150_15
2|Sun SDK 1.5.0_15 @ /bea/jdk150_15
3|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]> 1
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Choose Configuration Option:
----------------------------
*Do you want to modify any of the preconfigured settings or defaults in
*your template?
*
*To keep the default or template settings, and proceed directly to name and *create your domain, leave No selected.
1|Yes
->2|No
Enter index number to select OR [Exit][Previous][Next]> 1
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer |
2| Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
Enter option number to select OR [Exit][Previous][Next]> 2
配置监听地址
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer |
2| Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Enter value for "Listen address" OR [Exit][Previous][Next]> 192.168.0.111
配置监听端口
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_______________|
1| *Name: | AdminServer |
2| Listen address: | 192.168.0.111 |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 3
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_______________|
1| *Name: | AdminServer |
2| Listen address: | 192.168.0.111 |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Enter value for "Listen port" OR [Exit][Previous][Next]> 8080
配置SSL验证
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_______________|
1| *Name: | AdminServer |
2| Listen address: | 192.168.0.111 |
3| Listen port: | 8080 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 4
配置SSL验证
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
*Enter index number to modify "Value"
1|true
->2|false
3|Unspecified
Enter index number to select OR [Exit][Reset][Accept]> 1
配置SSL端口
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_______________|
1| *Name: | AdminServer |
2| Listen address: | 192.168.0.111 |
3| Listen port: | 8080 |
4| SSL listen port: | 7002 |
5| SSL enabled: | true |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL listen port"
5 - Modify "SSL enabled"
6 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 4
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_______________|
1| *Name: | AdminServer |
2| Listen address: | 192.168.0.111 |
3| Listen port: | 8080 |
4| SSL listen port: | 7002 |
5| SSL enabled: | true |
Enter value for "SSL listen port" OR [Exit][Previous][Next]> 8081
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_______________|
1| *Name: | AdminServer |
2| Listen address: | 192.168.0.111 |
3| Listen port: | 8080 |
4| SSL listen port: | 8081 |
5| SSL enabled: | true |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL listen port"
5 - Modify "SSL enabled"
6 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> next
不进行管理服务器配置
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Managed Servers:
--------------------------
Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.
| Name* | Listen address | Listen port | SSL listen port | SSL enabled |
_|_______|________________|_____________|_________________|_____________|
Enter name for a new OR [Exit][Previous][Next]> next
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Clusters:
-------------------
Add or delete configuration information for clusters. A cluster contains
multiple WebLogic Server instances that run simultaneously and work
together to provide increased scalability and reliability. A cluster
appears to be a single WebLogic Server instance to clients.
| Name* | Multicast address | Multicast port | Cluster address |
_|_______|___________________|________________|_________________|
Enter name for a new Cluster OR [Exit][Previous][Next]> next
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Machines:
-------------------
Add or delete configuration information for machines. A machine is the
logical representation of the system that hosts one or more WebLogic Server
instances. The Administration Server and Node Manager application use the
machine definition to start remote servers.
| Name* | Node manager listen address | Node manager listen port |
_|_______|_____________________________|__________________________|
Enter name for a new Machine OR [Exit][Previous][Next]> next
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Unix Machines:
------------------------
Add or delete configuration information for machines. A machine is the
logical representation of the system that hosts one or more WebLogic Server
instances. The Administration Server and Node Manager application use the
machine definition to start remote servers.
| Name |
_|______|
Enter name for a new Unix Machine OR [Exit][Previous][Next]> next
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Select the target domain directory for this domain:
---------------------------------------------------
"Target Location" = [Enter new value or use default
"/bea/user_projects/domains"]
Enter new Target Location OR [Exit][Previous][Next]> next
配置域名
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Edit Domain Information:
------------------------
| Name | Value |
_|________|_____________|
1| *Name: | base_domain |
Enter value for "Name" OR [Exit][Previous][Next]> weblogic
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Edit Domain Information:
------------------------
| Name | Value |
_|________|__________|
1| *Name: | weblogic |
Use above value or select another option:
1 - Modify "Name"
2 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> next
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Creating Domain...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****
目录结构
|---bea 主目录
|---/jdk_xxx/ 包含Sun JDK软件(如果此软件已随您的软件安装)。JDK提供
| 了Java运行时环境(JRE)和工具,永远对JAVA应用程序进行编
| 译和调试。在此目录名称中,xxx表示系统上安装的Sun JDK
| 版本
|---/jrockit_xxx/ 包含随您软件安装的BEA JRockit JDK软件。JDK提供了Java
| 运行时(JRE)和工具,用于对Java应用程序进行编译和调试。
| 在此目录名称中,xxx表示系统上安装的JRockit JDK版本。
|---/logs/ 包含BEA主目录的安装和卸载历史记录文件
|---/user_projects/ 包含着用户创建的域信息,在domains下面分开存放着域,域
| 下面存放着各自的应用程序
|---/util/ 包含用于至此BEA主目录的所有BEA产品安装使用工具(第三方
| 工具)。Utils.jar文件包含支持UpdateLicence实用工具的代码
|--/wlserver_10.3/ Weblogic Server主目录,包含Weblogic安装的所有组件的信
| 息
|--/workshop_10.3/ Weblogic工作车间,包含weblogic开发用的工具、包、可执行
| 文件等
|---/tools/ 包含了不是IDE版本的eclipse工具
|---/modules/ 系统及应用运行时所需的jar文件
|---/registry.xml 注册表文件,包含目标系统上安装所有BEA产品的持久性记
| 录。此注册表包含与产品相关的信息,如版本号,Service
| Pack编号,以及安装目录的位置。注意:勿手工编写该文件,
| 避免出错
参考至:《叱咤风云:WebLogic企业级运维实战》戴冠平著
http://www.blogjava.net/sham2k/articles/288822.html
本文原创,转载请注明出处、作者
如有错误,欢迎指正
邮箱:czmcj@163.com