WebLogic Server (LINUX平台)简明安装手册
首先下载weblogic。在公司的fs服务器上面有已经下载好的版本。
将要安装的版本(以813为例)上传到服务器,然后下面都用root用户操作。这里讲解的都是远程安装,没有使用图形界面。
#chmod +x server81x_linux32.bin
#./ server813_linux32.bin
稍等片刻会出来weblogic的安装界面。
Extracting 0%....................................................................................................100%
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Welcome:
--------
This installer will guide you through the installation of WebLogic Server 8.1 SP3. 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
直接按回车。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
BEA Systems License Agreement:
------------------------------
BEA SYSTEMS, INC. SOFTWARE LICENSE AGREEMENT
USE OF SOFTWARE 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. Workshop Free Use. The terms of this Section 1(a) are applicable to you if you have registered as a Workshop Free customer. Subject to the terms of this Agreement, BEA grants to you a non-exclusive,
non-transferable, royalty-free license to use Workshop Free solely for Development Use and Scale-Limited
Personal Use for the number of users and/or developers and the number of CPU's, Servers and/or at the
Sites, as specified at the time of registration. Third party software products or modules supplied by BEA, if any, may be used solely with the Software. All rights not specifically granted to you herein are
retained by BEA.
b. Workshop Pro Use. The terms of this Section 1(b) are applicable to you if you have registered as
a Workshop Pro customer. Subject to the terms of this Agreement, BEA grants to you a non-exclusive,
non-transferable, fee-bearing license to use Workshop Pro solely for Development Use and Scale-Limited
Commercial Use for the number of users and/or developers and the number of CPU's, Servers and/or at the
Sites, as specified on BEA's invoice. Third party software products or modules supplied by BEA, if any,
may be used solely with the Software. All rights not specifically granted to you herein are retained by
Select Option:
1 - Yes, I agree with the terms of the license
2 - No, I do not agree with the terms of the license
Enter option number to select OR [Down][Exit][Previous]>1
这里问是否同意weblogic的协议,输入1回车。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose BEA Home Directory:
--------------------------
*BEA home choice
1|Create a new BEA Home [/root/bea]
->2|Use an existing BEA Home [/usr/local/bea]
Enter index number to select OR [Exit][Previous][Next]>1
让选择一个bea的目录,这里我们要设置为/usr/local/wls813/bea。先选1,会出来下面的界面。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose BEA Home Directory:
--------------------------
"BEA Home" = [/root/bea]
Input new BEA Home OR [Exit][Previous][Next]> /usr/local/wls813/bea
输入bea的目录,也就是/usr/local/wls813/bea。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose BEA Home Directory:
--------------------------
*BEA home choice
->1|Yes, Use this BEA home directory [/usr/local/wls813/bea]
2|No, return to BEA home directory selection
Enter index number to select OR [Exit][Previous][Next]> 1
让确认一下。选1确认。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose Install Type:
--------------------
->1|Complete
|Install the complete BEA WebLogic Platform.
2|Custom Installation
|Choose software components to install and perform optional configuration.
Enter index number to select OR [Exit][Previous][Next]> 2
选择安装类型,我们选择2,自定义安装。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose Components to install:
-----------------------------
Release 8.1.3.0
|_____WebLogic Server [1]
| |_____Server [1.1]
| |_____Server Examples [1.2]
|_____WebLogic Workshop [2]
|_____Workshop Runtime Framework [2.1]
|_____WebLogic Workshop Application Developer Edition [2.2]
|_____Workshop Samples [2.3]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1
选择要安装的组件,选1,只安装weblogic server。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose Components to install:
-----------------------------
Release 8.1.3.0
|_____WebLogic Server [1] x
| |_____Server [1.1] x
| |_____Server Examples [1.2] x
|_____WebLogic Workshop [2]
|_____Workshop Runtime Framework [2.1]
|_____WebLogic Workshop Application Developer Edition [2.2]
|_____Workshop Samples [2.3]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next
选好之后按回车继续
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose Components to install:
-----------------------------
->1|Yes, use these component selections
2|No, return to component selection
Enter index number to select OR [Exit][Next]> 1
选1确认组件选择。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose Product Directory:
-------------------------
"Product Installation Directory" = [/usr/local/wls813/weblogic81]
Input new Product Installation Directory OR [Exit][Previous][Next]>/usr/local/wls813
选择安装路径,这里要输入/usr/local/wls813。此后还有一个确认。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Installing files..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Installing JDK....
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
开始安装,此时会出现一个模拟的进度条,耐心等待,直到100%。
Installation Complete
Congratulations! WebLogic Server 8.1 SP3 has been successfully installed to /usr/local/wls813.
Press any key to continue OR [Exit]>
至此,Weblogic8.1 sp3已成功安装到目录/usr/local/wls813下。
安装完之后,还需要新建一个域。新建域的方法是使用/usr/local/wls813/common/bin/config.sh命令。
-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Create or Extend a Configuration:
---------------------------------
Choose between creating and extending a configuration. Based on your selection, the Configuration Wizard guides you through
the steps to generate a new or extend an existing configuration.
->1|Create a new WebLogic configuration
| Start here to create a WebLogic configuration in your projects directory.
2|Extend an existing WebLogic configuration
| Start here to extend an existing WebLogic configuration. Use this option to add applications and services,
|including Database access (JDBC) and Messaging (JMS). This option also enables you to extend functionality by enabling
|WebLogic Workshop.
Enter index number to select OR [Exit][Next]>
选1,新建一个域。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Select a Domain Template:
-------------------------
Please select a template from the list or select another directory of templates.
* [/usr/local/wls813/common/templates/domains]
->1|Basic WebLogic Server Domain 8.1.3.0
| BEA Systems, Inc.
| Create a basic WebLogic Server domain without installing sample applications.
2|WebLogic Server Examples Domain 8.1.3.0
| BEA Systems, Inc.
| Create the WebLogic Server Examples domain in a directory outside of the installed kit. The Examples domain contains |a collection of examples to show best practices for coding individual J2EE APIs.
3|Avitek Medical Records Sample Domain 8.1.3.0
| BEA Systems, Inc.
| Create the Avitek Medical Records domain in a directory outside of the installed kit. The Avitek Medical Records is
|a WebLogic Server sample application suite that concisely demonstrates all aspects of the J2EE platform.
4|Select another directory location
Enter index number to select OR [Exit][Previous][Next]>
选1,基本的wls域。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Choose Configuration Option:
----------------------------
*Do you want to run the wizard in express mode?
->1|Yes
2|No
Enter index number to select OR [Exit][Previous][Next]>
选1。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Configure Administrative Username and Password:
-----------------------------------------------
Create a user automatically assigned to the Administrative 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: | The default administration user |
Select 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]>
在这个界面设置user name为system,并设置密码。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Configure Administrative Username and Password:
-----------------------------------------------
Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start
development mode servers.
| Name | Value |
_|_________________________|_________________________________|
1| *User name: | system |
2| *User password: | ******** |
3| *Confirm user password: | ******** |
4| Description: | The default administration user |
Select 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]>
都设置好之后,回车继续。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.
->1|Development Mode
2|Production Mode
Enter index number to select OR [Exit][Previous][Next]>
这里选择1,使用开发模式。因为我们经常需要重新启动weblogic,而使用产品模式的话,停止weblogic的时候是需要输入用户名密码的。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Java SDK Selection:
-------------------
->1|JRockit SDK 1.4.2_04-8130 @ /usr/local/wls813/bea/jrockit81sp3_142_04
2|Sun SDK 1.4.2_04 @ /usr/local/wls813/bea/jdk142_04
3|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]>
根据应用需要选择sdk,通常选择1。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Select the target domain directory for this configuration:
----------------------------------------------------------
"Target Location" = [/usr/local/wls813/user_projects/domains]
Input new Target Location OR [Exit][Previous][Next]>
选择域的安装位置,这里我们选择/usr/local/wls813/。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Edit Domain Information:
------------------------
| Name | Value |
_|________|__________|
1| *Name: | mydomain |
Enter value for "Name" OR [Exit][Previous][Next]>
设置域名,,具体是anymusic还是xstyle,看需要。在下一步确认。然后就会出现安装的进度条,等待片刻即可安装完毕。
域安装完毕之后,要为域做一个链接
ln -s /usr/local/wls813/anymusic /usr/local/wls
这样,以后访问/usr/local/wls就可以访问到域目录。
接下来还需要给安装的weblogic添加license,否则只能接收3个ip的连接。fs上面有相关文件,解压之后将weblogic_sp.jar放到/usr/local/wls813/server/lib/下面,将license.bea放到/usr/local/wls813/bea下面。
启动weblogic的命令为
/usr/local/wls/startWebLogic.sh
第一次启动可能需要用户名密码。启动时看到
首先下载weblogic。在公司的fs服务器上面有已经下载好的版本。
将要安装的版本(以813为例)上传到服务器,然后下面都用root用户操作。这里讲解的都是远程安装,没有使用图形界面。
#chmod +x server81x_linux32.bin
#./ server813_linux32.bin
稍等片刻会出来weblogic的安装界面。
Extracting 0%....................................................................................................100%
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Welcome:
--------
This installer will guide you through the installation of WebLogic Server 8.1 SP3. 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
直接按回车。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
BEA Systems License Agreement:
------------------------------
BEA SYSTEMS, INC. SOFTWARE LICENSE AGREEMENT
USE OF SOFTWARE 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. Workshop Free Use. The terms of this Section 1(a) are applicable to you if you have registered as a Workshop Free customer. Subject to the terms of this Agreement, BEA grants to you a non-exclusive,
non-transferable, royalty-free license to use Workshop Free solely for Development Use and Scale-Limited
Personal Use for the number of users and/or developers and the number of CPU's, Servers and/or at the
Sites, as specified at the time of registration. Third party software products or modules supplied by BEA, if any, may be used solely with the Software. All rights not specifically granted to you herein are
retained by BEA.
b. Workshop Pro Use. The terms of this Section 1(b) are applicable to you if you have registered as
a Workshop Pro customer. Subject to the terms of this Agreement, BEA grants to you a non-exclusive,
non-transferable, fee-bearing license to use Workshop Pro solely for Development Use and Scale-Limited
Commercial Use for the number of users and/or developers and the number of CPU's, Servers and/or at the
Sites, as specified on BEA's invoice. Third party software products or modules supplied by BEA, if any,
may be used solely with the Software. All rights not specifically granted to you herein are retained by
Select Option:
1 - Yes, I agree with the terms of the license
2 - No, I do not agree with the terms of the license
Enter option number to select OR [Down][Exit][Previous]>1
这里问是否同意weblogic的协议,输入1回车。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose BEA Home Directory:
--------------------------
*BEA home choice
1|Create a new BEA Home [/root/bea]
->2|Use an existing BEA Home [/usr/local/bea]
Enter index number to select OR [Exit][Previous][Next]>1
让选择一个bea的目录,这里我们要设置为/usr/local/wls813/bea。先选1,会出来下面的界面。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose BEA Home Directory:
--------------------------
"BEA Home" = [/root/bea]
Input new BEA Home OR [Exit][Previous][Next]> /usr/local/wls813/bea
输入bea的目录,也就是/usr/local/wls813/bea。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose BEA Home Directory:
--------------------------
*BEA home choice
->1|Yes, Use this BEA home directory [/usr/local/wls813/bea]
2|No, return to BEA home directory selection
Enter index number to select OR [Exit][Previous][Next]> 1
让确认一下。选1确认。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose Install Type:
--------------------
->1|Complete
|Install the complete BEA WebLogic Platform.
2|Custom Installation
|Choose software components to install and perform optional configuration.
Enter index number to select OR [Exit][Previous][Next]> 2
选择安装类型,我们选择2,自定义安装。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose Components to install:
-----------------------------
Release 8.1.3.0
|_____WebLogic Server [1]
| |_____Server [1.1]
| |_____Server Examples [1.2]
|_____WebLogic Workshop [2]
|_____Workshop Runtime Framework [2.1]
|_____WebLogic Workshop Application Developer Edition [2.2]
|_____Workshop Samples [2.3]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1
选择要安装的组件,选1,只安装weblogic server。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose Components to install:
-----------------------------
Release 8.1.3.0
|_____WebLogic Server [1] x
| |_____Server [1.1] x
| |_____Server Examples [1.2] x
|_____WebLogic Workshop [2]
|_____Workshop Runtime Framework [2.1]
|_____WebLogic Workshop Application Developer Edition [2.2]
|_____Workshop Samples [2.3]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next
选好之后按回车继续
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose Components to install:
-----------------------------
->1|Yes, use these component selections
2|No, return to component selection
Enter index number to select OR [Exit][Next]> 1
选1确认组件选择。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Choose Product Directory:
-------------------------
"Product Installation Directory" = [/usr/local/wls813/weblogic81]
Input new Product Installation Directory OR [Exit][Previous][Next]>/usr/local/wls813
选择安装路径,这里要输入/usr/local/wls813。此后还有一个确认。
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Installing files..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
Installing JDK....
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
<-------------------------------- BEA Installer - WebLogic Server 8.1 SP3 ------------------------------->
开始安装,此时会出现一个模拟的进度条,耐心等待,直到100%。
Installation Complete
Congratulations! WebLogic Server 8.1 SP3 has been successfully installed to /usr/local/wls813.
Press any key to continue OR [Exit]>
至此,Weblogic8.1 sp3已成功安装到目录/usr/local/wls813下。
安装完之后,还需要新建一个域。新建域的方法是使用/usr/local/wls813/common/bin/config.sh命令。
-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Create or Extend a Configuration:
---------------------------------
Choose between creating and extending a configuration. Based on your selection, the Configuration Wizard guides you through
the steps to generate a new or extend an existing configuration.
->1|Create a new WebLogic configuration
| Start here to create a WebLogic configuration in your projects directory.
2|Extend an existing WebLogic configuration
| Start here to extend an existing WebLogic configuration. Use this option to add applications and services,
|including Database access (JDBC) and Messaging (JMS). This option also enables you to extend functionality by enabling
|WebLogic Workshop.
Enter index number to select OR [Exit][Next]>
选1,新建一个域。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Select a Domain Template:
-------------------------
Please select a template from the list or select another directory of templates.
* [/usr/local/wls813/common/templates/domains]
->1|Basic WebLogic Server Domain 8.1.3.0
| BEA Systems, Inc.
| Create a basic WebLogic Server domain without installing sample applications.
2|WebLogic Server Examples Domain 8.1.3.0
| BEA Systems, Inc.
| Create the WebLogic Server Examples domain in a directory outside of the installed kit. The Examples domain contains |a collection of examples to show best practices for coding individual J2EE APIs.
3|Avitek Medical Records Sample Domain 8.1.3.0
| BEA Systems, Inc.
| Create the Avitek Medical Records domain in a directory outside of the installed kit. The Avitek Medical Records is
|a WebLogic Server sample application suite that concisely demonstrates all aspects of the J2EE platform.
4|Select another directory location
Enter index number to select OR [Exit][Previous][Next]>
选1,基本的wls域。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Choose Configuration Option:
----------------------------
*Do you want to run the wizard in express mode?
->1|Yes
2|No
Enter index number to select OR [Exit][Previous][Next]>
选1。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Configure Administrative Username and Password:
-----------------------------------------------
Create a user automatically assigned to the Administrative 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: | The default administration user |
Select 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]>
在这个界面设置user name为system,并设置密码。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Configure Administrative Username and Password:
-----------------------------------------------
Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start
development mode servers.
| Name | Value |
_|_________________________|_________________________________|
1| *User name: | system |
2| *User password: | ******** |
3| *Confirm user password: | ******** |
4| Description: | The default administration user |
Select 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]>
都设置好之后,回车继续。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.
->1|Development Mode
2|Production Mode
Enter index number to select OR [Exit][Previous][Next]>
这里选择1,使用开发模式。因为我们经常需要重新启动weblogic,而使用产品模式的话,停止weblogic的时候是需要输入用户名密码的。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Java SDK Selection:
-------------------
->1|JRockit SDK 1.4.2_04-8130 @ /usr/local/wls813/bea/jrockit81sp3_142_04
2|Sun SDK 1.4.2_04 @ /usr/local/wls813/bea/jdk142_04
3|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]>
根据应用需要选择sdk,通常选择1。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Select the target domain directory for this configuration:
----------------------------------------------------------
"Target Location" = [/usr/local/wls813/user_projects/domains]
Input new Target Location OR [Exit][Previous][Next]>
选择域的安装位置,这里我们选择/usr/local/wls813/。
<-------------------------------------------- BEA WebLogic Configuration Wizard ------------------------------------------->
Edit Domain Information:
------------------------
| Name | Value |
_|________|__________|
1| *Name: | mydomain |
Enter value for "Name" OR [Exit][Previous][Next]>
设置域名,,具体是anymusic还是xstyle,看需要。在下一步确认。然后就会出现安装的进度条,等待片刻即可安装完毕。
域安装完毕之后,要为域做一个链接
ln -s /usr/local/wls813/anymusic /usr/local/wls
这样,以后访问/usr/local/wls就可以访问到域目录。
接下来还需要给安装的weblogic添加license,否则只能接收3个ip的连接。fs上面有相关文件,解压之后将weblogic_sp.jar放到/usr/local/wls813/server/lib/下面,将license.bea放到/usr/local/wls813/bea下面。
启动weblogic的命令为
/usr/local/wls/startWebLogic.sh
第一次启动可能需要用户名密码。启动时看到