实战部署weblogic集群及发布应用(4)

-----构建weblogic高可用系列(共7篇)

    经过前面的操作,我们已经将把weblogic安装完毕!此篇文章让我们了解一下域吧!

    Domain :

        域是作为单元进行管理的一组相关的 WebLogic Server 资源。一个域包含一个或多个 WebLogic Server 实例,这些实例可以是群集实例、非群集实例,或者是群集与非群集实例的组合。一个域可以包含多个群集。域还包含部署在域中的应用程序组件、此域中的这些应用程序组件和服务器实例所需的资源和服务。应用程序和服务器实例使用的资源和服务示例包括计算机定义、可选网络通道、连接器和启动类。

    下面我们开始实际操作,创建一个域吧!

(1) cd/app/sinova/Oracle/wlserver_10.3/common/bin   #进入命令目录
(2) ./config.sh     #执行创建域的脚本
Unable to instantiate GUI, defaulting to console mode.
<-----Fusion Middleware ConfigurationWizard------>
Welcome:
--------
Choose between creating and extending a domain. Based on yourselection,
the Configuration Wizard guides you through the steps togenerate a new or
extend an existing domain.
 ->1|Create a newWebLogic domain
    |    Create a WebLogic domain in your projectsdirectory. 
   2|Extend an existingWebLogic domain
    |    Use this option to add new components to anexisting domain and modify    |configuration settings.
    
Enter index number to select OR [Exit][Next]> 1 
#第1选择创建一个新的domain,第2选择使用一个已经存在的domian
<-----Fusion Middleware ConfigurationWizard------>
Select Domain Source:
---------------------
Select the source from which the domain will be created. Youcan create the
domain by selecting from the required components or byselecting from a
list of existing domain templates.
 ->1|Choose WeblogicPlatform components
    |    You can choose the Weblogic component(s)that you want supported in
    |your domain.
    
   2|Choose customtemplate
    |    Choose this option if you want to use anexisting  template. This
    |could be a customcreated template using the Template Builder.
    
Enter index number to select OR [Exit][Previous][Next]> 1 
#第1选择weblogic的组件
<-----Fusion Middleware ConfigurationWizard------>
Application Template Selection:
-------------------------------
    Available Templates
    |_____BasicWebLogic Server Domain - 10.3.3.0 [wlserver_10.3]x
    |_____WebLogicAdvanced Web Services for JAX-RPC Extension - 10.3.3.0 [wlserver_10.3] [2]
    |_____WebLogicAdvanced Web Services for JAX-WS Extension - 10.3.3.0 [wlserver_10.3] [3]
    ** Invalid input,not selectable
Enter number exactly as it appears in brackets to toggleselection OR [Exit][Previous][Next]> 回车
#默认直接回车
<-----Fusion Middleware ConfigurationWizard------>
Edit Domain Information:
------------------------
   |  Name  |    Value    |
   |________|_____________|
  1| *Name: |base_domain |
  
Enter value for "Name" OR[Exit][Previous][Next]>回车  
#更改域的名称,这里使用默认,直接回车。
<-----Fusion Middleware ConfigurationWizard------>
Select the target domain directory for this domain:
---------------------------------------------------
    "Target Location"= [Enter new value or use default
"/app/sinova/Oracle/Middleware/user_projects/domains"]
Enter new Target Location OR [Exit][Previous][Next]>/app/sinova/domains   
#域的安装路径修改为 /app/sinova/domains
<-----Fusion Middleware ConfigurationWizard------>
Configure Administrator User Name and Password:
-----------------------------------------------
Create a user to be assigned to the Administrator role. Thisuser is the
default administrator used to start development mode servers.
    |          Name           |                  Value                  |
    |_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm userpassword:  |                                         |
   4|      Description:       | This user is the defaultadministrator.  |
Use above value or select another option:
    1 - Modify"Name"
    2 - Modify"User password"
    3 - Modify"Confirm user password"
    4 - Modify"Description"
Enter option number to select OR [Exit][Previous][Next]>2
#修改第2项,给weblogic用户设置密码。密码设置为weblogic010
Enter option number to select OR [Exit][Previous][Next]>3  
#修改第3项,确认密码。
<-----Fusion Middleware ConfigurationWizard------>
Configure Administrator User Name and Password:
-----------------------------------------------
Create a user to be assigned to the Administrator role. Thisuser is the
default administrator used to start development mode servers.
    "*Confirm userpassword:" = []
Enter new *Confirm user password: OR[Exit][Reset][Accept]> weblogic010  
#确认密码
-----------------------------------------------
Create a user to be assigned to the Administrator role. Thisuser is the
default administrator used to start development mode servers.
   |          Name           |                  Value                  |
   |_________________________|_________________________________________|
  1|         *Name:          |                weblogic                 |
  2|     *User password:     |               ***********               |
  3| *Confirm userpassword:  |              ***********                |
  4|      Description:       | This user is the defaultadministrator.  |
  
Use above value or select another option:
    1 - Modify"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]>回车   
#默认直接回车
<-----Fusion Middleware ConfigurationWizard------>
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.
 ->1|DevelopmentMode
   2|Production Mode
Enter index number to select OR [Exit][Previous][Next]>2  
#1是开发模式,我们选择2,生产模式
<-----Fusion Middleware ConfigurationWizard------>
Java SDK Selection:
-------------------
 ->1|Sun SDK1.6.0_45 @ /app/sinova/jdk1.6.0_45
   2|Other Java SDK
Enter index number to select OR[Exit][Previous][Next]>回车
  #选择JDK,直接回车
<-----Fusion Middleware ConfigurationWizard------>
Select Optional Configuration:
------------------------------
   1|AdministrationServer [ ]
   2|Managed Servers,Clusters and Machines [ ]
   3|RDBMS SecurityStore [ ]
Enter index number to select OR [Exit][Previous][Next]> 1 
#选择1,只配置Admin Server,其它可以以后在控制台配置。
<-----Fusion Middleware ConfigurationWizard------>
Select Optional Configuration:
------------------------------
   1|AdministrationServer [x]
   2|Managed Servers,Clusters and Machines [ ]
   3|RDBMS SecurityStore [ ]
Enter index number to select OR [Exit][Previous][Next]>回车  
#默认回车确认
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogicServer domain must
have one Administration Server. The Administration Server hoststhe
Administration Console which is used to performadministrative 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]>回车
  #回车确认,使用默认的端口7001
<-----Fusion Middleware ConfigurationWizard------>
Creating Domain...
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****

 到此为此,创建域的工作就结束了!

    创建域有2种方式:

        a.图形方式(图形界面,很人性化,适合初学的朋友们)

        b.字符方式(本文使用此种方式,速度比较快,节省资源,适合有基础的朋友们)

    以上2种操作方式,请选择一种适合你的,就好了!