现在的位置: 首页 > 综合 > 正文

weblogic的安装和配置–9.2

2013年09月01日 ⁄ 综合 ⁄ 共 20015字 ⁄ 字号 评论关闭

                                                             weblogic的安装和配置

1.weblogic部署前准备

把weblogic的bin包放到/opt/oracle目录下

1.1创建weblogic用户组

groupadd oinstall

useradd -g oinstall oracle

passwd oracle【按照提示输入密码】

1.2创建目录/opt/oracle/bea,修改目录所有者权限

mkdir -p /opt/oracle/bea

chown -Rf oracle:oinstall /opt/oracle/bea

2安装weblogic9.2

2.1安装weblogic9.2目录

赋予.bin可执行权限:chmod a+x server920_linux32.bin

执行./ server920_linux32.bin

 进入控制台安装的欢迎界面,键入[Next]继续

 此时出现授权许可协议,读完后键入[1]继续

 提示选择一个BEA主目录:

输入:/opt/oracle/bea

确认BEA主目录,

 键入[1]继续

选择BEA主目录,键入[next]继续

选择安装类型, 键入[1]继续

是否安装install Mercury profiling tools (development

environment only),键入[2]继续

选择安装路径,默认,输入[next]继续。

确认安装路径。键入[1]继续

确认安装路径,直接回车

安装完毕。

步骤如下:

[root@SOR_SYS oracle]$ ./server920_linux32.bin

Extracting 0%....................................................................................................100%

Unable to instantiate GUI, defaulting to console mode.

 

<-------------------------------------------------- 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 

<-------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------->

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.  WebLogic SDK Use.  The terms of this Section 1(a) are applicable to you if you have registered as a WebLogic SDK customer.

Subject to the terms of this Agreement, BEA grants to you a non-exclusive, non-transferable, royalty-free license to use WebLogic

SDK 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. WebLogic SDK Pro Use.  The terms of this Section 1(b) are applicable to you if you have registered as a WebLogic SDK Pro

customer. Subject to the terms of this Agreement, BEA grants to you a non-exclusive, non-transferable, fee-bearing license to use

WebLogic SDK 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 BEA.

 

c. Evaluation Use.  The terms of this Section 1(c) are applicable to you if you have registered as an Evaluation Use customer.

Subject to the terms of this Agreement, BEA grants to you a non-exclusive, non-transferable, license to use the Software solely for Evaluation Use. Third party software products or modules supplied by BEA,
if any, may be used solely with the Software, and may be

subject to your acceptance of terms and conditions provided by such third parties. This license begins upon downloading and ends if and when terminated by BEA in accordance with this Agreement. When the license
terminates you must stop using the Software.  All

rights not specifically granted to you herein are retained by BEA.  Note that not all Software is available for Evaluation Use. 

Your Evaluation Use license shall terminate on the earlier of: (i) the license key provided by BEA expiring or ceasing to function; (ii) at any time upon notice from BEA; or (iii) the expiration date indicated
in any related BEA quotation or order document.

 

d.  Development Use. The terms of this Section 1(d) are applicable to you if you have registered as a Development Use customer.

Subject to the terms of this Agreement, BEA grants to you a non-exclusive, non-transferable, fee-bearing license to use the

Software solely for Development Use for the number of users 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 BEA.

 

e.  Production Use. The terms of this Section 1(e) are applicable to you if you have registered as a Production Use customer.

Subject to the terms of this Agreement, BEA grants to you a non-exclusive, non-transferable, fee-bearing license to use the

Software solely for Production Use on 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.  If you integrate the Software

into an application and intend to resell the resulting integrated application you must contact BEA to obtain the appropriate

distribution license. All rights not specifically granted to you herein are retained by BEA.

 

Use above value or select another 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

 

<-------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------->

Choose BEA Home Directory:

--------------------------

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

 

 

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

 

 

<-------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------->

Choose BEA Home Directory:

--------------------------

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

 

Use above value or select another option:

    1 - Enter new BEA Home

    2 - Change to default [/home/oracle/bea]

 

 

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

 

 

<-------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------->

Choose BEA Home Directory:

--------------------------

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

 

Enter new BEA Home OR [Exit][Previous][Next]> next

 

 

<-------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------->

Choose Install Type:

--------------------

Select the type of installation you wish to perform.

 

 ->1|Complete

    |  Install the following software components and examples:

    | - WebLogic Server

    | - Workshop for WebLogic Platform

 

   2|Custom

    |  Choose software components to install and perform optional configuration.

 

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

 

<-------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------->

Optional Tools

 

Do you want to install Mercury profiling tools (development

environment only)?

    1 - Yes, install Mercury profiling tools.

    2 - No, do not install.

 

Enter a number or [Exit][Previous][Next]> 2

 

<-------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------->

Choose Product Installation Directories:

----------------------------------------

 

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

 

Product Installation Directories:

   1|Default Product Home: [/opt/oracle/bea/weblogic92]

   2|Workshop for WebLogic Platform: [/opt/oracle/bea/workshop92]

 

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 "/opt/oracle/bea/weblogic92"]

 

 

Enter new Default Product Home OR [Exit][Previous][Next]>【按回车】

 

 

<-------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------->

Choose Product Installation Directories:

----------------------------------------

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

Product Installation Directories:

 

   1|Default Product Home: [/opt/oracle/bea/weblogic92]

   2|Workshop for WebLogic Platform: [/opt/oracle/bea/workshop92]

 

 Enter index number to select OR [Exit][Previous][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 to /opt/oracle/bea/weblogic92.

 

Press [Enter] to continue or type [Exit]> 【按回车】

 

  

<-------------------------------------------------- BEA Installer - BEA Products ------------------------------------------------->

 

Clean up process in progress ...

[root@SOR_SYS oracle]#

2.2创建服务

使用oracle用户登录系统

[oracle@SOR_SYS ~]$ cd /opt/oracle/bea/weblogic92/common/bin/

[oracle@SOR_SYS bin]$ ./config.sh

Unable to instantiate GUI, defaulting to console mode.

 

 

<----------------------------------------------- BEA 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

 

 

<----------------------------------------------- BEA 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

<----------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------->

Application Template Selection:

-------------------------------

 

    Available Templates

    |_____WebLogic Server (Required)x

    |_____Workshop for WebLogic Platform [2]

 

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>【直接按回车】

 

<----------------------------------------------- BEA 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]> 1【修改用户名】

  

<----------------------------------------------- BEA 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. |

 

Enter value for "User name" OR [Exit][Previous][Next]> oracle【改成oracle用户】

  

<----------------------------------------------- BEA 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:       |                 oracle                  |

   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]> 2

 

<----------------------------------------------- BEA 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]>【要求输入你对应用户的密码】

 

<----------------------------------------------- BEA 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:       |                 oracle                  |

   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

 

<----------------------------------------------- BEA 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]>【再次键入密码确认】

 

<----------------------------------------------- BEA 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:       |                 oracle                  |

   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]> 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]> 2

 

<----------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------->

Java SDK Selection:

-------------------

 ->1|JRockit SDK 1.5.0_04 @ /opt/oracle/bea/jrockit90_150_04

   2|Sun SDK 1.5.0_04 @ /opt/oracle/bea/jdk150_04

   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]> previous

 

<----------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------->

Java SDK Selection:

-------------------

 

 ->1|JRockit SDK 1.5.0_04 @ /opt/oracle/bea/jrockit90_150_04

   2|Sun SDK 1.5.0_04 @ /opt/oracle/bea/jdk150_04

   3|Other Java SDK

 

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

 

<----------------------------------------------- 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]>

 

<----------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------->

Select the target domain directory for this domain:

---------------------------------------------------

    "Target Location" = [Enter new value or use default "/opt/oracle/bea/user_projects/domains"]

 

Enter new Target Location OR [Exit][Previous][Next]>

 

 

<----------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------->

Edit Domain Information:

------------------------ 

    |  Name  |    Value    |

   _|________|_____________|

   1| *Name: | base_domain |

 

 

Enter value for "Name" OR [Exit][Previous][Next]> mydomain【这个域名是你想要取的名字】

 

<----------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------->

Edit Domain Information:

------------------------

 

    |  Name  |  Value   |

   _|________|__________|

   1| *Name: | mydomain |

 

Use above value or select another option:

    1 - Modify "Name"

    2 - Discard Changes

 

 

Enter option number to select OR [Exit][Previous][Next]>【直接回车】

<----------------------------------------------- BEA WebLogic Configuration Wizard ----------------------------------------------->

Creating Domain...

 

0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]

 

 

**** Domain Created Successfully! ****

完成服务的建立!

 

3.部署应用

3.1启动和关闭

如何启动weblogic

[oracle@SOR_SYS ~]$ cd /opt/oracle/bea/user_projects/domains/mydomain

[oracle@SOR_SYS mydomain]$ ./startWebLogic.sh【需要输入用户名和密码,但是在9.3版本中一般输入用户名的时候会出错,所以必须得写入文件中】

 

这个时候我们就需要设置自动启动WebLogic

无需输入用户名密码启动关闭weblogic。

我们需要进入/opt/oracle/bea/user_projects/domains/mydomain/servers/AdminServer目录

然后mkdir security,然后进入security目录并touch一个boot.properties文件,输入

password=12345678

username=oracle

注意:password和username的顺序不能够变化,切忌!!!并且重启之后我们再去看那个boot.properties文件,会发现用户名和密码都会加密。

 

3.2如何关闭weblogic

[oracle@SOR_SYS ~]$ cd /opt/oracle/bea/user_projects/domains/mydomain

[oracle@SOR_SYS mydomain]$ ./stopWebLogic.sh

 

3.3测试

我们在浏览器中输入:

http://192.168.55.232:7001/console

然后提示输入用户名和密码

 

然后点击Log in会进入以下界面

 到此已经测试成功,,(*^__^*) 嘻嘻……

抱歉!评论已关闭.