實戰部署weblogic集羣及發佈應用(4)

實戰部署weblogic集羣及發佈應用(4)web

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

    通過前面的操做,咱們已經將把weblogic安裝完畢!此篇文章讓咱們瞭解一下域吧!
服務器

    Domain :網絡

        域是做爲單元進行管理的一組相關的 WebLogic Server 資源。一個域包含一個或多個 WebLogic Server 實例,這些實例能夠是羣集實例、非羣集實例,或者是羣集與非羣集實例的組合。一個域能夠包含多個羣集。域還包含部署在域中的應用程序組件、此域中的這些應用程序組件和服務器實例所需的資源和服務。應用程序和服務器實例使用的資源和服務示例包括計算機定義、可選網絡通道、鏈接器和啓動類。app

    下面咱們開始實際操做,建立一個域吧!dom

(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! ****

 到此爲此,建立域的工做就結束了!ide

    建立域有2種方式:
ui

        a.圖形方式(圖形界面,很人性化,適合初學的朋友們)
this

        b.字符方式(本文使用此種方式,速度比較快,節省資源,適合有基礎的朋友們)
spa

    以上2種操做方式,請選擇一種適合你的,就行了!

相關文章
相關標籤/搜索