Basic WebLogic Server Domain 创建

来源:互联网 发布:淘宝无线端免费模板 编辑:程序博客网 时间:2024/05/16 06:44

1.1 部署前准备

WebLogicbin包放在/home目录上.

1、创建weblogic用户组。

        groupadd weblogic

        useradd -g weblogicweblogic

        passwd weblogic(修改weblogic密码)

2、创建/var/web/jsp/bea目录,修改目录所有者权限
        mkdir /var/web/jsp/bea

        chown –Rfweblogic:weblogic /var/web/jsp/bea

3、用weblogic用户登陆系统,修改配置文件。
        vi ~/.bash_profile

增加export LANG=en_US.iso885915

1.2 安装WebLogic 8.1

赋予.bin可执行权限:chmod a+xplatform814_linux32.bin
执行./platform814_linux32.bin-mode=console

      进入控制台安装的欢迎界面,键入[Next]继续
      此时出现授权许可协议,读完后键入[Yes]继续
      提示选择一个BEA主目录:

输入:/var/web/jsp/bea
确认BEA主目录,

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

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

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

安装完毕。
注:(两个补丁文件见补丁包的说明)

 

1.3 创建服务

使用WebLogic用户登录系统:

[weblogic@jcms bin]$ cd /var/web/jsp/bea/weblogic81/common/bin

[weblogic@jcms bin]$ ./config.sh

 

Unable to instantiate GUI, defaulting to console mode.

进入设置:
<-------- 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 stepsto

generate a new or extend an existing configuration.

 

 ->1|Create a new WebLogic configuration

    |    Start here to createa WebLogic configuration in your projects directory.

 

   2|Extend an existing WebLogic configuration

    |    Start here toextend an existing WebLogic configuration. Use this option to addapplications and services, including Database

|    access (JDBC) and Messaging (JMS).This option also enables you to extend functionality by enabling WebLogicWorkshop.

 

 

 

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

 

 

<-------------------------------- BEA WebLogicConfiguration Wizard ----------------------->

 

Select a Domain Template:

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

 

Please select a template from the list or select anotherdirectory of templates.

 

*[/home/weblogic/bea/weblogic81/common/templates/domains]

 

   1|Basic WebLogic Platform Domain 8.1.3.0

    | BEA Systems, Inc.

    | Create a basic WebLogicPlatform domain, without installing sample applications. Domains createdfrom this template will support the

    |WebLogic Server, WebLogic Workshop,WebLogic Integration and WebLogic Portal runtime functionality, includingsupport for J2EE

    |applications, Web applications, WebServices, custom controls, business processes and portals. Use domainscreated from this template

    |for development of WebLogic Platformapplications.

 

   2|Basic WebLogic Portal Domain 8.1.3.0

   | BEA Systems, Inc.

    | Create a basic WebLogic Portaldomain, without installing sample applications.   Domains createdfrom this template will support the

    |WebLogic Server, WebLogic Workshopand WebLogic Portal runtime functionality, including support for J2EEapplications, Web applications,   

 |Web Services, custom controls andportals. Use domains created from this template for development ofWebLogic Portal applications.

 

 3 |BasicWebLogic Integration Domain 8.1.3.0

   | BEASystems, Inc.

    | Create a basic WebLogicIntegration domain, without installing sample applications.   Domainscreated from this template will support

    |the WebLogic Server, WebLogicWorkshop and WebLogic Integration runtime functionality, including support forJ2EE applications, Web

    |applications, Web Services, custom controls and businessprocesses. Use domains created from this template for development ofWebLogic

      |Integration applications.

 

     4|Basic WebLogic Workshop Domain8.1.3.0

   | BEA Systems, Inc.

 

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

 

 

 

<---------------------- BEA WebLogic ConfigurationWizard ---------------------------->

 

Select a Domain Template:

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

 

Please select a template from the list or select anotherdirectory of templates.

 

    | Create a basic WebLogicWorkshop domain, without installing sample applications.   Domainscreated from this template will support the     |WebLogicServer and WebLogic Workshop runtime functionality, including support for J2EEapplications, Web applications, Web Services and    |custom controls. Use domains created from this template for developmentof WebLogic Workshop applications.

 

 ->5|Basic WebLogic Server Domain 8.1.3.0

    | BEA Systems, Inc.

    | Create a basic WebLogic Serverdomain without installing sample applications.

 

   6|WebLogic Server Examples Domain 8.1.3.0

    | BEA Systems, Inc.

    | Create the WebLogic ServerExamples domain in a directory outside of the installed kit. The Examplesdomain contains a collection of

    |examples to show best practices forcoding individual J2EE APIs.

 

   7|Avitek Medical Records Sample Domain 8.1.3.0

    | BEA Systems, Inc.

    | Create the Avitek MedicalRecords domain in a directory outside of the installed kit. The AvitekMedical Records is a WebLogic Server     |sampleapplication suite that concisely demonstrates all aspects of the J2EE platform.

 

   8|Select another directory location

 

 

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

 

<--------------------- BEA WebLogic ConfigurationWizard --------------------->

 

Select a Domain Template:

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

 

Please select a template from the list or select anotherdirectory of templates.

    *The selected template is the same asthe one you are working on. Do you

    *want to reload the template ?

 

 ->1|Yes

 

   2|No

 

 

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


<------------------------- BEA WebLogicConfiguration Wizard ------------------------->

 

Choose Configuration Option:

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

 

    *Do you want to run the wizard inexpress mode?

 ->1|Yes

   2|No

 

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

 

<------------------------- BEA WebLogic ConfigurationWizard ------------------------->

 

Configure Administrative Username and Password:

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

 

Create a user automatically assigned to theAdministrative Role. This user is the default administrator used to startdevelopment mode

servers.

 

   |         Name          |             Value             |

  _|_________________________|_________________________________|

   1|       *Username:      |           weblogic            |

   2|     *Userpassword:    |                                |

   3| *Confirm user password:|                                |

   4|     Description:       | The default administrationuser |

 

Select Option:

    1 - Modify "User name"

    2 - Modify "User password"

    3 - Modify "Confirm userpassword"

    4 - Modify "Description"

 

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

 

<------------------------- BEA WebLogic ConfigurationWizard ------------------------->

 

Configure Administrative Username and Password:

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

 

Create a user automatically assigned to theAdministrative Role. This user is the default administrator used to startdevelopment mode

servers.

 

    "*User password:" = []

 

Input new *User password: OR[Exit][Reset][Accept]> [输入八位密码]  

 

<------------------------- BEA WebLogic ConfigurationWizard ------------------------->

 

Configure Administrative Username and Password:

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

 

Create a user automatically assigned to theAdministrative Role. This user is the default administrator used to startdevelopment mode

servers.

 

 

   |         Name          |             Value             |

  _|_________________________|_________________________________|

   1|       *Username:      |           weblogic            |

   2|     *Userpassword:    |            ******             |

   3| *Confirm user password:|                                |

   4|     Description:       | The default administrationuser |

 

Select Option:

    1 - Modify "User name"

    2 - Modify "User password"

    3 - Modify "Confirm userpassword"

    4 - Modify "Description"

    5 - Discard Changes

 

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

 

<------------------------- BEA WebLogic ConfigurationWizard ------------------------->

 

Configure Administrative Username and Password:

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

 

Create a user automatically assigned to the AdministrativeRole. This user is the default administrator used to start development mode

servers.

 

    "*Confirm user password:" =[]

 

Input new *Confirm user password:OR [Exit][Reset][Accept]> [确认八位密码] ///口令必须与上面的一样

 

 

<------------------------- BEA WebLogic ConfigurationWizard ------------------------->

 

Configure Administrative Username and Password:

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

 

Create a user automatically assigned to theAdministrative Role. This user is the default administrator used to startdevelopment mode

servers.

 

 

 

 

 

 

   |         Name          |             Value             |

  _|_________________________|_________________________________|

   1|       *Username:      |           weblogic            |

   2|     *Userpassword:    |           ********            |

   3| *Confirm user password:|           ********            |

   4|     Description:       | The default administrationuser |

 

Select Option:

    1 - Modify "User name"

    2 - Modify "User password"

    3 - Modify "Confirm userpassword"

    4 - Modify "Description"

    5 - Discard Changes

 

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

 

 

<------------------------- BEA WebLogic ConfigurationWizard ------------------------->

 

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

 

Java SDK Selection:

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

 

 ->1|JRockit SDK 1.4.2_04-8130@ /home/weblogic/bea/jrockit81sp3_142_04

  2|Sun SDK 1.4.2_04@ /home/weblogic/bea/jdk142_04

   3|Other Java SDK

 

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

 

 

<------------------------- BEA WebLogic ConfigurationWizard ------------------------->

 

Select the target domain directory for thisconfiguration:

----

 

    "Target Location" =[/home/weblogic/bea/user_projects/domains]

 

Input new Target Location OR[Exit][Previous][Next]> [直接回车]

 

<------------------------- BEA WebLogic ConfigurationWizard ------------------------->

 

Edit Domain Information:

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

 

   | Name | Value   |

   _|________|__________|

   1| *Name: | mydomain |

 

Enter value for "Name"OR [Exit][Previous][Next]> [输入名称或者直接回车]

 

 

 

<------------------------- BEA WebLogic ConfigurationWizard ------------------------->

 

Creating Domain...

 

0%         25%         50%         75%          100%

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

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

 

 

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

完成服务的建立!