weblogic 建立域

哎呀我的天吶發表於2014-11-14
目錄結構:

點選(此處)摺疊或開啟

  1. [weblogic@test weblogic]$ pwd
  2. /u02/weblogic
  3. [weblogic@test weblogic]$ ll
  4. total 200
  5. drwxrwxr-x 6  weblogic weblogic 4096   Nov 14 10:08 coherence_3.7
  6. -rw-rw---- 1  weblogic weblogic 133    Nov 14 10:06 domain-registry.xml
  7. drwxr-x--- 8  weblogic weblogic 4096   Nov 14 10:08 jdk160_29
  8. drwxrwxr-x 2  weblogic weblogic 4096   Nov 14 10:08 logs
  9. drwxrwxr-x 7  weblogic weblogic 36864  Nov 14 10:06 modules
  10. -rw-rw-r-- 1  weblogic weblogic 625    Nov 14 10:08 ocm.rsp
  11. drwxrwxr-x 11 weblogic weblogic 4096   Nov 14 10:08 oepe_11.1.1.8.0
  12. drwxrwxr-x 13 weblogic weblogic 4096   Nov 14 10:08 oracle_common
  13. -rw-rw-r-- 1  weblogic weblogic 121710 Nov 14 10:08 registry.dat
  14. -rw-rw-r-- 1  weblogic weblogic 2672   Nov 14 10:08 registry.xml
  15. drwxrwxr-x 8  weblogic weblogic 4096   Nov 14 10:06 utils
  16. drwxrwxr-x 8  weblogic weblogic 4096   Nov 14 10:08 wlserver_10.3
weblogic server的主目錄是wlserver_10.3

點選(此處)摺疊或開啟

  1. [weblogic@test weblogic]$ cd wlserver_10.3/
  2. [weblogic@test wlserver_10.3]$ ll
  3. total 24
  4. drwxrwxr-x 11 weblogic weblogic 4096 Nov 14 10:06 common
  5. drwxrwxr-x 3  weblogic weblogic 4096 Nov 14 10:08 inventory
  6. drwxrwxr-x 2  weblogic weblogic 4096 Nov 14 10:06 L10N
  7. drwxrwxr-x 11 weblogic weblogic 4096 Nov 14 10:06 server
  8. drwxrwxr-x 3  weblogic weblogic 4096 Nov 14 10:06 sip
  9. drwxrwxr-x 2  weblogic weblogic 4096 Nov 14 10:08 uninstall
server應用伺服器。

點選(此處)摺疊或開啟

  1. [weblogic@test common]$ pwd
  2. /u02/weblogic/wlserver_10.3/common
  3. [weblogic@test common]$ ll
  4. total 36
  5. drwxrwxr-x 2 weblogic weblogic 4096 Nov 14 10:08 bin
  6. drwxrwxr-x 2 weblogic weblogic 4096 Nov 14 10:06 deployable-libraries
  7. drwxr-x--- 4 weblogic weblogic 4096 Nov 14 10:06 derby
  8. drwxrwxr-x 2 weblogic weblogic 4096 Nov 14 10:06 eval
  9. drwxr-x--- 3 weblogic weblogic 4096 Nov 14 10:06 lib
  10. drwxrwxr-x 2 weblogic weblogic 4096 Nov 14 10:06 nodemanager
  11. drwxrwxr-x 4 weblogic weblogic 4096 Nov 14 10:06 quickstart
  12. drwxrwxr-x 6 weblogic weblogic 4096 Nov 14 10:06 templates
  13. drwxrwxr-x 4 weblogic weblogic 4096 Nov 14 10:06 wlst
bin:目錄是,可執行檔案,包括我們配置domain時候需要的命令。
lib:是weblogic啟動等的jar包。包含建立domain時需要的jar包等。說白了就是java的class。
nodemanager:節點管理器。
templates:模板

點選(此處)摺疊或開啟

  1. [weblogic@test wlserver_10.3]$ cd server/
  2. [weblogic@test server]$ ls
  3. adr bin db ext include lib locale native plugin
  4. [weblogic@test server]$ ll
  5. total 44
  6. drwxrwxr-x 2 weblogic weblogic 4096 Nov 14 10:06 adr
  7. drwxr-x--- 3 weblogic weblogic 4096 Nov 14 10:06 bin
  8. drwxrwxr-x 8 weblogic weblogic 4096 Nov 14 10:06 db
  9. drwxrwxr-x 3 weblogic weblogic 4096 Nov 14 10:06 ext
  10. drwxrwxr-x 3 weblogic weblogic 4096 Nov 14 10:06 include
  11. drwxr-x--- 14 weblogic weblogic 12288 Nov 14 10:06 lib
  12. drwxrwxr-x 3 weblogic weblogic 4096 Nov 14 10:06 locale
  13. drwxrwxr-x 3 weblogic weblogic 4096 Nov 14 10:06 native
  14. drwxrwxr-x 7 weblogic weblogic 4096 Nov 14 10:06 plugin
ext:xml jar files;擴充套件的jar包,包括jdbc driver。
db:oracle database 的ddl。
lib:是weblogic server的jar包。啟動weblogic server至關重要。

啟動管理伺服器之後,我們就可以透過瀏覽器控制檯訪問管理伺服器。同時配置,哪臺server負責什麼任務。在domain下config中配置。



定義domain的過程就是明確下面這些:

我們透過配置助手,配置在$WEBLOGIC_HOME/common/bin/config.sh
啟動控制檯,就得 config.sh -mode=console

[weblogic@test wlserver_10.3]$ cd common/bin/
[weblogic@test bin]$ ls
commEnv.sh         config.sh  setPatchEnv.sh  startManagedWebLogic.sh  unpack.sh   wlscontrol.sh   wlst.sh
config_builder.sh  pack.sh    startDerby.sh   stopDerby.sh             upgrade.sh  wlsifconfig.sh
[weblogic@test bin]$ ./config.sh -mode=console  --加了引數的意思是靜默安裝



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
    |    Use this option to add new components to an existing domain and modify configuration settings. 


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



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



Application Template Selection:
-------------------------------



    Available Templates
    |_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
    |_____Oracle WSM Policy Manager - 11.1.1.0 [oracle_common] [2] 
    |_____Oracle JRF WebServices Asynchronous services - 11.1.1.0 [oracle_common] [3] 
    |_____Oracle JRF - 11.1.1.0 [oracle_common] [4] 
    |_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [5] 
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [6] 
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [7] 



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 




Edit Domain Information:
------------------------


    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | base_domain |



Enter value for "Name" OR [Exit][Previous][Next]> 





Select the target domain directory for this domain:
---------------------------------------------------


    "Target Location" = [Enter new value or use default "/u02/weblogic/user_projects/domains"]


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





Configure Administrator User Name 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|         *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 "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"


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






Configure Administrator User Name 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]> 





Configure Administrator User Name 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|         *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 "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





Configure Administrator User Name 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]> 





Configure Administrator User Name 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|         *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 "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




Configure Administrator User Name 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]> 






Configure Administrator User Name 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|         *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 "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]> 





Configure Administrator User Name 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|         *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 "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes


    ** CF**K-60050:  Property "Password" of User "weblogic" is invalid.
    ** CF**K-60455:  The password must be at least 8 alphanumeric characters with at least one number or special 
    ** character.



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




Configure Administrator User Name 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]> 






Configure Administrator User Name 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|         *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 "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






Configure Administrator User Name 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]> 





Configure Administrator User Name 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|         *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 "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]>  




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




Java SDK Selection:
-------------------


 ->1|Sun SDK 1.6.0_29 @ /u02/weblogic/jdk160_29
   2|Other Java SDK


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




Select Optional Configuration:
------------------------------


   1|Administration Server [ ]
   2|Managed Servers, Clusters and Machines [ ]
   3|RDBMS Security Store [ ]

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





Select Optional Configuration:
------------------------------


   1|Administration Server [x]
   2|Managed Servers, Clusters and Machines [ ]
   3|RDBMS Security Store [ ]

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




Configure the Administration Server:
------------------------------------

Each WebLogic Server domain must have one Administration Server. The Administration Server is used to perform 
administrative 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]> 



Creating Domain...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

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

/u02/weblogic/user_projects/domains/base_domain

這裡就是domain的目錄。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29990276/viewspace-1332460/,如需轉載,請註明出處,否則將追究法律責任。

相關文章