实战weblogic集群之创建domain,AdminServer

时间:2023-03-09 07:48:55
实战weblogic集群之创建domain,AdminServer

在weblogic安装完后,接下来就可以创建domain,AdminSever了。

第1步:

$ cd /app/sinova/Oracle/wlserver_10./common/bin
$ ./config.sh
Unable to instantiate GUI, defaulting to console mode.
Java HotSpot(TM) -Bit Server VM warning: You have loaded library /app/sinova/Oracle/wlserver_10./common/lib/libjni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. <------------------- Fusion Middleware 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. ->|Create a new WebLogic domain
| Create a WebLogic domain in your projects directory. |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]> #直接回车

第2步:

<------------------- Fusion Middleware 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. ->|Choose Weblogic Platform components
| You can choose the Weblogic component(s) that you want supported in
|your domain. |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]> #直接回车

第3步:

<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:
------------------------------- Available Templates
|_____Basic WebLogic Server Domain - 10.3.3.0 [wlserver_10.]x
|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.3.0 [wlserver_10.] []
|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.3.0 [wlserver_10.] [] Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> #直接回车

第4步:

<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:
------------------------------- Available Templates
|_____Basic WebLogic Server Domain - 10.3.3.0 [wlserver_10.]x
|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.3.0 [wlserver_10.] []
|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.3.0 [wlserver_10.] [] Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> <------------------- Fusion Middleware Configuration Wizard ------------------> Edit Domain Information:
------------------------ | Name | Value |
_|________|_____________|
| *Name: | base_domain | Enter value for "Name" OR [Exit][Previous][Next]> #直接回车,也可以自定义domain的名称

第5步:定义创建域的路径

------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:
--------------------------------------------------- "Target Location" = [Enter new value or use default
"/app/sinova/Oracle/user_projects/domains"] Enter new Target Location OR [Exit][Previous][Next]> /app/sinova/domains

第6步:设置密码

<------------------- Fusion Middleware Configuration Wizard ------------------>

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 |
_|_________________________|_________________________________________|
| *Name: | weblogic |
| *User password: | |
| *Confirm user password: | |
| Description: | This user is the default administrator. | Use above value or select another option:
- Modify "Name"
- Modify "User password"
- Modify "Confirm user password"
- Modify "Description" Enter option number to select OR [Exit][Previous][Next]>

第7步:

<------------------- Fusion Middleware Configuration Wizard ------------------>

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

第8步:确认密码

<------------------- Fusion Middleware Configuration Wizard ------------------>

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 |
_|_________________________|_________________________________________|
| *Name: | weblogic |
| *User password: | *********** |
| *Confirm user password: | |
| Description: | This user is the default administrator. | Use above value or select another option:
- Modify "Name"
- Modify "User password"
- Modify "Confirm user password"
- Modify "Description"
- Discard Changes Enter option number to select OR [Exit][Previous][Next]>

第9步:

<------------------- Fusion Middleware Configuration Wizard ------------------>

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

第10步:

<------------------- Fusion Middleware Configuration Wizard ------------------>

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 |
_|_________________________|_________________________________________|
| *Name: | weblogic |
| *User password: | *********** |
| *Confirm user password: | *********** |
| Description: | This user is the default administrator. | Use above value or select another option:
- Modify "Name"
- Modify "User password"
- Modify "Confirm user password"
- Modify "Description"
- Discard Changes Enter option number to select OR [Exit][Previous][Next]> #直接回车

第11步:选择生产模式

<------------------- Fusion Middleware Configuration Wizard ------------------>

Domain Mode Configuration:
-------------------------- Enable Development or Production Mode for this domain. ->|Development Mode |Production Mode Enter index number to select OR [Exit][Previous][Next]>

第12步:

<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
------------------- ->|JRockit SDK 1.7.0_79 @ /app/sinova/jdk1..0_79
|Other Java SDK Enter index number to select OR [Exit][Previous][Next]> #直接回车

第13步:选择1,暂时只创建AdminServer,集群中的Managed Servers可以在控制上去创建。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------ |Administration Server [ ]
|Managed Servers, Clusters and Machines [ ]
|RDBMS Security Store [ ] Enter index number to select OR [Exit][Previous][Next]>

第14步:

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------ |Administration Server [x]
|Managed Servers, Clusters and Machines [ ]
|RDBMS Security Store [ ] Enter index number to select OR [Exit][Previous][Next]> #回车

第15步:

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure the Administration Server:
------------------------------------ Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks. | Name | Value |
_|__________________|_____________________|
| *Name: | AdminServer |
| *Listen address: | All Local Addresses |
| Listen port: | |
| SSL listen port: | N/A |
| SSL enabled: | false | Use above value or select another option:
- Modify "Name"
- Modify "Listen address"
- Modify "Listen port"
- Modify "SSL enabled" Enter option number to select OR [Exit][Previous][Next]> #可以默认直接回车

第16步:domain创建完成。

<------------------- Fusion Middleware Configuration Wizard ------------------>

Creating Domain...

%          %          %          %          %
[------------|------------|------------|------------]
[***************************************************] **** Domain Created Successfully! ****

进入/app/sinova/后可以看到生成了一个domains目录,表示域创建完成。