HPUnix环境下Weblogic7的安装与配置
一、准备工作
1. 使用root用户登录UNIX
2. 新建文件夹
(1) 进入home分区
root# cd /home
(2) 新建bea文件夹
root# mkdir bea
二、安装
1. 创建需安装WebLogic的目录,命令:mkdir WLI_DIR(WLI_DIR为文件夹名称)
2. 使用FTP把安装文件filename.bin 传送到UNIX的某个临时目录(使用binary方式),如WLI_DIR/setup;
3. 安装文件可执行,命令:chmod 755 filename.bin
4. 开始控制台安装,命令:filename.bin –i console
5. 开始解压数据
====================================================
Extracting 0%...................................................................
Extracting 0%...................................................................
.................................100%
Illegal argument: -i
Illegal argument: console
Unable to instantiate GUI, defaulting to console mode.
====================================================
====================================================
6. 出现欢迎安装信息
====================================================
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
Welcome:
This installer will guide you through the installation of
WebLogic Platform 7.0.7.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”
====================================================
输入“Next”
7. 出现确认安装信息
===================================================
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
BEA Systems License Agreement:
BEA SYSTEMS, INC. SOFTWARE LICENSE AGREEMENT
USE OF
SOFT
WARE ORDERED FROM BEA SYSTEMS, INC. ("BEA") IS PROVIDED ONLY
UNDER LICENSE FROM BEA. PLEASE READ THE FOLLOWING LICENSE CAREFULLY
AND INDICATE YOUR ACCEPTANCE BY CLICKING THE ACCEPTANCE BOX. CERTAIN
CAPITALIZED TERMS ARE DEFINED IN SECTION 11.
1. LICENSE TERMS
a. Evaluation Use. The terms of this Section 1(a) are applicable to you
if you have registered as an Evaluation customer. Subject to the terms
of this Agreement, BEA grants to you a non-exclusive,
non-transferable, license to use the evaluation version of the Software
solely for Evaluation Use. Third party software products or modules
supplied by BEA, if any, may be used solely with the Software. This
Enter [Yes][No][Exit][Previous][More]>
====================================================
输入“Yes”
====================================================
输入“Yes”
8. 选择bea的home路径
====================================================
====================================================
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
Choose
BEA
Home
Directory:
BEA home choice
1| Create a new
BEA
Home
[/usr/local/bea]
->2| Use an existing
BEA
Home
[/home/bea]
Enter index number to select OR [Exit][Previous][Next]>
====================================================
如果初次安装,选择“1”,然后选择bea的路径;
====================================================
如果初次安装,选择“1”,然后选择bea的路径;
如果需要覆盖已经存在的bea文件夹,选择”2”,即使用一个已经存在的路径。
9. 文件夹覆盖确认
====================================================
------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
choose BEA Home Directory
->1| /home/bea
nter index number to select OR [Exit][Previous][Next]>
====================================================
输入“1”,确认bea的文件路径。
====================================================
输入“1”,确认bea的文件路径。
10. bea安装路径确认或修改
====================================================
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
Choose
BEA
Home
Directory:
BEA home choice
->1| Yes, Use this BEA home directory [/home/bea]
2| No, return to BEA home directory selection
Enter index number to select OR [Exit][Previous][Next]>
====================================================
若选择“Yes, Use this BEA home directory”,输入对应的数字“1”。
====================================================
若选择“Yes, Use this BEA home directory”,输入对应的数字“1”。
11. 选择安装类型
====================================================
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
Choose Install Type:
->1| Typical Installation (Install all software components, including program
files and examples.)
2| Custom Installation (Choose software components to install and optionall
y create custom application domains. Recommended for advanced users.)
Enter index number to select OR [Exit][Previous][Next]>
====================================================
====================================================
选择“Typical Installation”,使用典型安装,请输入对应的数字“1”。
12. 选择archive文件存放路径及本机IP地址和PORT
====================================================
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
Specify Download Options:
1- Modify Storage directory (none)
2- Modify Remove download files after installation (No)
3- Modify Proxy Host (none)
4- Modify
Proxy
Port
(none)
Enter a number or [Exit][Previous][Next]
====================================================
输入1,然后输入archive文件的存放路径,如“/temp”
输入2,然后选择在安装后删除或保存archive文件
输入3,然后输入weblogic服务器的IP地址
输入4,然后输入weblogic服务器的默认服务端口
13. 开始生成archive文件
====================================================
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
verifying files...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[**************************************
====================================================
如果该步骤出错,请创建路径“/temp”,并将archive文件手工拷贝到该路径下(一共6个文件:
archive.bea
、
plat7070_232_COMP_hpux.jar
、
psu7070_232_COMP_hpux.jar
、
wli7070_232_COMP_hpux.jar
、
wlp7070_232_COMP_hpux.jar、
wls7070_232_COMP_hpux.jar
)。但再次安装的时候,请确认‘步骤12’中选择的文件夹为“/temp”。
14. 选择Weblogic安装路径
====================================================
<--------- WebLogic Platform Installer - WebLogic Platform 7.0.7.0 ---->
Choose Product Directory:
Product Installation Directory = [/home/bea/weblogic700]
Input new Product Installation Directory OR [Exit][Previous][Next]>
输入NEXT,继续安装。或者输入一个存在的路径,做为Weblogic的安装路径。
15. 确认选择Weblogic安装路径
====================================================
<---------- WebLogic Platform Installer - WebLogic Platform 7.0.7.0 ------>
Choose Product Directory:
->1| Yes, use this product directory [/home/bea/weblogic700]
2| No, select another product directory
====================================================
输入数字‘1’,确认安装路径。
16. 安装文件
====================================================
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
<------------- BEA Installer - WebLogic Platform 7.0.7.0 ------------->
verifying files...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
====================================================
====================================================
17. 选择产品安装路径
====================================================
<-------- WebLogic Platform Installer - WebLogic Platform 7.0.7.0 ---->
<-------- WebLogic Platform Installer - WebLogic Platform 7.0.7.0 ---->
Choose Product Directory:
Product Installation Directory = [/home/bea/weblogic700]
Input new Product Installation Directory OR [Exit][Previous][Next]>
====================================================
====================================================
输入“Next”
18. 确认安装路径
====================================================
<--------WebLogic Platform Installer - WebLogic Platform 7.0.7.0 ---->
<--------WebLogic Platform Installer - WebLogic Platform 7.0.7.0 ---->
Choose Product Directory:
->1| Yes, use this product directory [/home/bea/weblogic700]
2| No, select another product directory
Enter index number to select OR [Exit][Previous][Next]>
====================================================
====================================================
输入“Next”
19. 开始复制文件和JDK
====================================================
<------------- WebLogic Platform Installer - WebLogic Platform 7.0.7.0 ---------
---->
Copying files..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
Copying JDK....
====================================================
20. 安装完成提示信息
====================================================
<---------WebLogic Platform Installer - WebLogic Platform 7.0.7.0 -------->
Install Complete
Congratulations! WebLogic Platform 7.0.7.0
has been successfully installed to
/home/bea/weblogic700.
Press any key to continue OR [Exit]>
====================================================
随意输入字符,如“Y”。安装结束。
二、配置服务
1. 进入weblogic安装路径(如home/bea/weblogic700)
cd /home/bea/weblogic700
2. 进入common路径
cd ./common
3. 进入bin路径
cd ./bin
4. 运行dmwiz.sh
sh ./dmwiz.sh
5. 进入配置界面
====================================================
<--------- BEA Configuration Wizard - WebLogic Platform 7.0.7.0 ------>
Choose Domain Type
->1 - WLS Examples
2 - WLS Petstore
3 - WLS Domain
4 - WebLogic Workshop
5 - BPM Domain
6 - EAI Domain
7 - WLI Domain
8 -
WLP
Domain
9 - Platform Domain
Enter a number or [Exit][Next]>
====================================================
选择“WLS Domain”,请输入对应的数字。
6. 选择服务类型
====================================================
<--------- BEA Configuration Wizard - WebLogic Platform 7.0.7.0 -------->
Choose Server Type
->1 - Single Server (Standalone Server)
2 - Admin Server with Managed Server(s)
3 - Admin Server with Clustered Managed Server(s)
4 - Managed Server (with owning Admin Server configuration)
Enter a number or [Exit][Previous][Next]>
====================================================
选定标准服务,请输入对应的数字“1”。
7. 选择domain名称
====================================================
<-------- BEA Configuration Wizard - WebLogic Platform 7.0.7.0 ------->
Choose Domain Name
1 - Modify current selection(mydomain)
->2 - Use current name
Enter a number or [Exit][Previous][Next]>
====================================================
选择“2”,使用当前文件夹
8. 配置服务
====================================================
<---------- BEA Configuration Wizard - WebLogic Platform 7.0.7.0 -------->
Configure Single Server
1- Modify Server Name (myserver)
2- Modify Server Listen Address ()
3- Modify
Server
Listen
Port
(7001)
4- Modify
Server
SSL
Listen
Port
(7002)
Enter a number or [Exit][Previous][Next]>
====================================================
选择“1”,对服务名称进行配置
选择“2”,对服务器IP地址进行配置
选择“3”,对服务端口进行配置
选择“4”,对服务侦听端口进行配置
9. 配置结果确认信息
====================================================
<----- BEA Configuration Wizard - WebLogic Platform 7.0.7.0 ----------->
Configure Single Server
1- Modify Server Name (myserver)
2- Modify Server Listen Address (192.168.0.15)
3- Modify
Server
Listen
Port
(7001)
4- Modify
Server
SSL
Listen
Port
(7002)
Enter a number or [Exit][Previous][Next]>
====================================================
输入“Next”
10. 选择Domain路径
====================================================
<---------- BEA Configuration Wizard - WebLogic Platform 7.0.7.0 -------->
Choose Location to Create Domain
1 - Modify current selection
(/home/bea/user_projects)
->2 - Use current directory
The domain directory will be located at:
(/home/bea/user_projects/mydomain)
Enter a number or [Exit][Previous][Next]>
====================================================
输入“Next”
11. 提示路径已存在
====================================================
Directory /home/bea/user_projects/mydomain already exists.
Enter YES to continue, or NO to cancel.
Enter YES to continue, or NO to cancel or [Exit][Previous][Next]>
====================================================
输入“YES”,继续
12. 提示输入用户名
====================================================
<------------- BEA Configuration Wizard - WebLogic Platform 7.0.7.0 ---->
Enter User Name or [Exit][Previous][Next]>
====================================================
输入启动服务的用户名称,如“system”
13. 提示输入密码及密码确认
====================================================
Enter Password or [Exit][Previous][Next]>
Enter Verify Password or [Exit][Previous][Next]>
====================================================
输入密码,然后再次输入密码,进行确认
14. 配置信息总结:
====================================================
<------- BEA Configuration Wizard - WebLogic Platform 7.0.7.0 -------->
Configuration Summary
Domain Name: mydomain
Server Type: Single Server (Standalone Server)
Domain Template Name: WLS Domain
Install Directory:
/home/bea/user_projects/mydomain
Listen Address: 192.168.0.15
Listen
Port
: 7001
SSL
Listen
Port
: 7002
User Name: system
Password: ********
Enter [Exit][Previous][Create]>
====================================================
输入“Create”,继续
15. 提示成功建立domain
====================================================
<------- BEA Configuration Wizard - WebLogic Platform 7.0.7.0 ---------->
Domain Configuration Wizard has successfully created "mydomain" domain
Enter [Exit][Next]>
====================================================
输入“Next”,继续
16. 提示是否运行配置
====================================================
<---- BEA Configuration Wizard - WebLogic Platform 7.0.7.0 ----->
Configuration Wizard Complete
1 - Run Configuration Wizard again.
->2 - End Configuration Wizard.
Enter [Exit][Previous][Next]>
====================================================
输入“2”或者“Next”,结束配置。
三、启动服务和验证配置
1. 启动Weblogic服务
进入domain路径,如上面的“/home/bea/user_projects/mydomain”,运行startWebLogic.sh,启动weblogic服务。
2. 登录控制台
打开IE,在URL地址中输入
http://Weblogic服务器IP:7001/console,出现如下界面,表示weblogic配置正确。