转:多机nodemanager测试小记&weblogic103

2010-07-14 » WebLogic

出处: http://weblogicfans.net/viewthread.php?tid=1759&extra=page%3D1 作者: tony xu 完整图片请访问论坛

多机nodemanager测试小记&weblogic103

</p>
本帖最后由 tonyxu 于 2010-1-15 23:19 编辑 </p>

1、系统环境
OS:Red Hat Enterprise Linux AS release 4 (Nahant)
midware:Weblogic 103
JDK: Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
BEA JRockit(R) (build R27.6.0-50_o-100423-1.6.0_05-20080626-2104-linux-ia32, compiled mode)

192.168.0.56     7001          adminserver          管理服务器
192.168.0.55     7002          appserver1          被管服务
192.168.0.55     5555          nodemanager          节点管理器
2、linux安装weblogic
安装用户:bea
安装路径:/home/bea/bea103
具体安装过程略。
3、创建weblogic被管服务器
用bea用户登录192.168.0.55,执行/home/bea/bea103/wlserver_10.3/common/bin/config.sh
[bea@mylinux bin]$ ./config.sh
Unable to instantiate GUI, defaulting to console mode.

<——————————————————————— Oracle WebLogic 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.
->1|Create a new WebLogic domain
    |    Create a WebLogic domain in your projects directory.  
   2|Extend an existing WebLogic domain
    |    Extend an existing WebLogic domain.  Use this option to add applications and services, or to override existing database access (JDBC) and messaging (JMS) settings. You
    |can also incorporate additional functionality in your domain, for example, by including AquaLogic Service Bus.

Enter index number to select OR [Exit][Next]>
选择1
<——————————————————————— Oracle WebLogic 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.
->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
<——————————————————————— Oracle WebLogic Configuration Wizard ———————————————————————>
Application Template Selection:
——————————-

    Available Templates
    |_____WebLogic Server (Required)x

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>
输入Next
Configure Administrator Username 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|       *User 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 "User name"
    2 – Modify "User password"
    3 – Modify "Confirm user password"
    4 – Modify "Description"

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]>
选择生产模式。
<——————————————————————— Oracle WebLogic Configuration Wizard ———————————————————————>
Java SDK Selection:
——————-
->1|JRockit SDK 1.6.0_05 @ /home/bea/bea103/jrockit_160_05
   2|Other Java SDK

Enter index number to select OR [Exit][Previous][Next]>
选择JDK。

<——————————————————————— Oracle WebLogic Configuration Wizard ———————————————————————>
Choose Configuration Option:
—————————-
    *Do you want to modify any of the preconfigured settings or defaults in your template?
    *
    *To keep the default or template settings, and proceed directly to name and create your domain, leave No selected.
   1|Yes
->2|No

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

<——————————————————————— Oracle WebLogic Configuration Wizard ———————————————————————>
Configure RDBMS Security Store Options:
—————————————
Create the RDBMS tables in your datastore prior to booting your domain. The scripts for use by your DBA are in WebLogic Server’s server/lib directory. Click Next to keep the
template settings or bypass RDBMS options.  
->1|I don’t want to change anything here.
   2|I want to create, change, or remove RDBMS support.

Enter index number to select OR [Exit][Previous][Next]>
选择1
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        |
   _|__________________|_____________________|
   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]>
修改后:
|       Name       |        Value        |
   _|__________________|_____________________|
   1|      *Name:      |     appserver1      |
   2| Listen address:  | All Local Addresses |
   3|   Listen port:   |        7002   &#16
0;     |
   4| SSL listen port: |         N/A         |
   5|   SSL enabled:   |        false        |

下面的都不用设置
Configure Managed Servers:
————————–
Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Server is an instance of WebLogic
Server used to host enterprise applications.
    | Name* | Listen address | Listen port | SSL listen port | SSL enabled |
   _|_______|________________|_____________|_________________|_____________|

Enter name for a new  OR [Exit][Previous][Next]>
Configure Clusters:
——————-
Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and work together to provide increased
scalability and reliability. A cluster appears to be a single WebLogic Server instance to clients.
    | Name* | Multicast address | Multicast port | Cluster address |
   _|_______|___________________|________________|_________________|

Enter name for a new Cluster OR [Exit][Previous][Next]>

<——————————————————————— Oracle WebLogic Configuration Wizard ———————————————————————>
Configure Machines:
——————-
Add or delete machines. A machine hosts one or more WebLogic Server instances. The Admin Server and Node Manager use this machine definition to start remote servers.
    | Name* | Node manager listen address | Node manager listen port |
   _|_______|_____________________________|__________________________|

Enter name for a new Machine OR [Exit][Previous][Next]>

Configure Unix Machines:
————————
Add or delete machines. A machine hosts one or more WebLogic Server instances. The Admin Server and Node Manager use this machine definition to start remote servers.
    | Name |
   _|______|

Enter name for a new Unix Machine OR [Exit][Previous][Next]>

<——————————————————————— Oracle WebLogic Configuration Wizard ———————————————————————>
Select the target domain directory for this domain:
—————————————————
    "Target Location" = [Enter new value or use default "/home/bea/bea103/user_projects/domains"]

Enter new Target Location OR [Exit][Previous][Next]>
设置域目录

Edit Domain Information:
————————
    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | node_domain |
Use above value or select another option:
    1 – Modify "Name"
    2 – Discard Changes
设置domain的名字。

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

<——————————————————————— Oracle WebLogic Configuration Wizard ———————————————————————>
Creating Domain…
0%          25%          50%          75%          100%
[————|————|————|————]
[***************************************************]

**** Domain Created Successfully! ****
进入该domain,观察config.xml文件
[bea@mylinux config]$ more config.xml

<domain xsi:schemaLocation="http://www.bea.com/ns/weblogic/90/security
http://www.bea.com/ns/weblogic/90/security.xsd
http://www.bea.com/ns/weblogic/90/security/wls
http://www.bea.com/ns/weblogic/90/security/wls.xsd
http://www.bea.com/ns/weblogic/90/security/xacml
http://www.bea.com/ns/weblogic/90/security/xacml.xsd
http://www.bea.com/ns/weblogic/920/domain
http://www.bea.com/ns/weblogic/920/domain.xs
d
" xmlns="http://www.bea.com/ns/weblogic/920/domain" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:wls="http://www.bea.c
om/ns/weblogic/90/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  node_domain
  10.3.0.0
  <security-configuration xmlns:xacml="http://www.bea.com/ns/weblogic/90/security/xacml">
    node_domain
   
     
     
        AuthenticatedUser
     

     
     
     
     
     
      WebLogicCertPathProvider
      myrealm
   

    myrealm
    {3DES}DDMw4wLCiM2Hy5t2HU4iMricG3RrokurMXGyz7HQcNvQqICj/Q3ufM7vOdUCAvhKKH3l4BWVGYDtUSAGsSNn9GAABDYukwNk
    p06ss5m7oh
    {3DES}BoyfrKxM+N/gLK07eYh4iQ==
  </security-configuration>
 
    appserver1
    7002
   
 

  true
 
    node_domain
    {3DES}Hga8oF/+k64afBoOmg3yavCpVGB7FEoKBmJXPVIAAIA=
  </embedded-ldap>
  10.3.0.0
 
    nextr
   
      nextr
      localhost
   

 

  appserver1
</domain>

4、创建weblogic管理服务器
同样的方法,可在192.168.0.56上创建管理服务器adminserver。
[bea@mylinux config]$ more config.xml

<domain xsi:schemaLocation="http://www.bea.com/ns/weblogic/90/security
http://www.bea.com/ns/weblogic/90/security.xsd
http://www.bea.com/ns/weblogic/90/security/wls
http://www.bea.com/ns/weblogic/90/security/wls.xsd
http://www.bea.com/ns/weblogic/90/security/xacml
http://www.bea.com/ns/weblogic/90/security/xacml.xsd
http://www.bea.com/ns/weblogic/920/domain
http://www.bea.com/ns/weblogic/920/domain.xsd" xmlns="http://www.bea.com/ns/weblogic/920/domain" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:wls="http://www.bea.c
om/ns/weblogic/90/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  node_domain
  10.3.0.0
  <security-configuration xmlns:xacml="http://www.bea.com/ns/weblogic/90/security/xacml">
    node_domain
   
     

     
        AuthenticatedUser
     

     
     
     
     
     
      WebLogicCertPathProvider
      myrealm
   

    myrealm
    {3DES}ZLbzAUWd6zDASnRvcFsPLsMTYRxgyjEJRnh5GMuwxbBN+D3AkCuXTeuyo4Fep+4vDf+mcYq2OfIgR5rUdsdXKsW8J1tWSqDI
    OMAdtHWxW3
    {3DES}oc3Rs2SGum0hfPqlpCCJTQ==
  </security-configuration>
 
    adminserver
   
 

  true
 
    node_domain
    {3DES}qJ32FuAb7yV3an41PDjg+OdU3jPe7SOefwOie1GPkis=
  </embedded-ldap>
  10.3.0.0
  adminserver
</domain>
[bea@mylinux config]$

5、启动weblogic服务器
(1)启动管理服务器
[bea@mylinux node_domain]$ ./startWebLogic.sh
<Jan 15, 2010 3:46:25 PM EST> <Channel "Default" is now listening on 192.168.0.56:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jan 15, 2010 3:46:25 PM EST> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jan 15, 2010 3:46:25 PM EST> <Started WebLogic Admin Server "adminserver" for domain "node_domain" running in Production Mode>
<Jan 15, 2010 3:46:25 PM EST> <Hostname "mylinux", maps to multiple IP addresses: 192.168.0.56, 127.0.0.1>
<Jan 15, 2010 3:46:25 PM EST> <Hostname "127.0.0.1", maps to multiple IP addresses: 192.168.0.56, 127.0.0.1>
<Jan 15, 2010 3:46:26 PM EST>
<Jan 15, 2010 3:46:26 PM EST>
(2)添加被管服务器
新建一个server
接下来配置位于192.168.0.55的被管服务器的名称,服务器IP,监听端口后保存。本例分别设置为appserver1,192.168.0.55,7002 </p>

(3)启动被管服务器

进入192.168.0.55上的node_domain,启动被管服务器appserver1
[bea@mylinux bin]$ ./startManagedWebLogic.sh appserver1 http://192.168.0.56:7001

其中192.168.0.56:7001是管理服务器的IP和端口。


<Jan 15, 2010 4:08:34 PM EST> <The Server has established connection with the Domain level Diagnostic Service successfully.> </font>
<Jan 15, 2010 4:08:34 PM EST> </font>
<Jan 15, 2010 4:08:34 PM EST> </font>
<Jan 15, 2010 4:08:35 PM EST> <Channel "Default" is now listening on 192.168.0.55:7002 for protocols iiop, t3, ldap, snmp, http.> </font>
<Jan 15, 2010 4:08:35 PM EST> <WebLogicServe
r> <Started WebLogic Managed Server "appserver1" for domain "node_domain" running in Production Mode> </font>
<Jan 15, 2010 4:08:40 PM EST> </font>
<Jan 15, 2010 4:08:40 PM EST> </font>
</p>

6、配置节点管理器

在尝试了非节点管理器方式启动受管服务器后,现在来配置用节点管理器启动。

创建machine:

</p>

</font></td> </tr> </tbody> </table>

附件: 您所在的用户组无法下载或查看附件

</div> </p></div> </p></div> </td> </tr> </tbody> </table></div> </p></div> </p></div>
配置nodemanager </p>

上图的IP应该是0.55

启动NodeManager,并通过console远程启动被管服务器

(1)通过如下命令启动Machine1上的NodeManager

/home/bea/bea103/wlserver_10.3/server/bin
[bea@mylinux bin]$ ./startNodeManager.sh 192.168.0.55 5555
+ CLASSPATH=/home/bea/bea103/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/bea/bea103/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/bea/bea103/jrockit_160_05/lib/tools.jar:/home/bea/bea103/wlserver_10.3/server/lib/weblogic_sp.jar:/home/bea/bea103/wlserver_10.3/server/lib/weblogic.jar:/home/bea/bea103/modules/features/weblogic.server.modules_10.3.0.0.jar:/home/bea/bea103/wlserver_10.3/server/lib/webservices.jar:/home/bea/bea103/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/bea/bea103/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/home/bea/bea103
+ export CLASSPATH
+ export PATH
+ cd /home/bea/bea103/wlserver_10.3/common/nodemanager
+ set -x
+ ‘[‘ 5555 ‘!=’ ” ‘]’
+ ‘[‘ 192.168.0.55 ‘!=’ ” ‘]’
+ /home/bea/bea103/jrockit_160_05/bin/java -jrockit -Xms128m -Xmx256m -Xverify:none -Djava.security.policy=/home/bea/bea103/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/home/bea/bea103/jrockit_160_05 -DListenAddress=192.168.0.55 -DListenPort=5555 weblogic.NodeManager -v
<Jan 15, 2010 4:59:37 PM> <Loading domains file: /home/bea/bea103/wlserver_10.3/common/nodemanager/nodemanager.domains></font>
<Jan 15, 2010 4:59:39 PM> <Loading identity key store: FileName=/home/bea/bea103/wlserver_10.3/server/lib/DemoIdentity.jks, Type=jks, PassPhraseUsed=true></font>
<Jan 15, 2010 4:59:40 PM> <Node manager configuration properties file ‘/home/bea/bea103/wlserver_10.3/common/nodemanager/nodemanager.properties’ not found. Using default settings.></font>
<Jan 15, 2010 4:59:40 PM> <Saving node manager configuration properties to ‘/home/bea/bea103/wlserver_10.3/common/nodemanager/nodemanager.properties"></font>
Node manager v10.3

Configuration settings:

NodeManagerHome=/home/bea/bea103/wlserver_10.3/common/nodemanager
ListenAddress=192.168.0.55
ListenPort=5555
ListenBacklog=50
SecureListener=true
AuthenticationEnabled=true
NativeVersionEn
abled=true

CrashRecoveryEnabled=false
JavaHome=/home/bea/bea103/jrockit_160_05/jre
StartScriptEnabled=false
StopScriptEnabled=false
StartScriptName=startWebLogic.sh
StopScriptName=
LogFile=/home/bea/bea103/wlserver_10.3/common/nodemanager/nodemanager.log
LogLevel=INFO
LogLimit=0
LogCount=1
LogAppend=true
LogToStderr=true
LogFormatter=weblogic.nodemanager.server.LogFormatter
DomainsFile=/home/bea/bea103/wlserver_10.3/common/nodemanager/nodemanager.domains
DomainsFileEnabled=true
StateCheckInterval=500

Domain name mappings:

wl_server -> /home/bea/bea103/wlserver_10.3/samples/domains/wl_server
base_domain -> /home/bea/bea103/user_projects/domains/base_domain
medrec -> /home/bea/bea103/wlserver_10.3/samples/domains/medrec
node_domain -> /home/bea/bea103/user_projects/domains/node_domain

<Jan 15, 2010 4:59:42 PM> <Secure socket listener started on port 5555, host 192.168.0.55></font>
Adminserver报错:
The system is vulnerable to security attacks, since it trusts certificates signed by the demo trusted CA.>
<Jan 15, 2010 5:13:56 PM EST> <Could not execute command "getVersion" on the node manager. Reason: "Connection refused. Couldn’t connect to NodeManager. Check that it is running at 192.168.0.56:5555".></font>

修改adminserver的配置 </p>

修改后需重启adminserver,再启动nodemanager后,状态变为reachable,成功,同时在console上去启动appserver1.



(2)重新登录console,依次点击左边的环境”——“服务器,可以看到管理服务器和被管服务器的状态:



7、测试节点管理器重启受管服务器的功能192.168.0.55上(受管服务器所在机器)
[bea@mylinux nodemanager]$ ps -ef|grep java
bea
3169
3146
0 17:17 pts/1
00:00:00 /home/bea/bea103/jrockit_160_05/bin/java -jrockit -Xms128m -Xmx256m -Xverify:none -Djava.security.policy=/home/bea/bea103/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/home/bea/bea103/jrockit_160_05 -DListenAddress=192.168.0.55 -DListenPort=5555 weblogic.NodeManager -v
bea
3193
3169
0 17:20 ?
00:00:00 /home/bea/bea103/jrockit_160_05/jre/bin/java -Dweblogic.Name=appserver1 -Djava.security.policy=/home/bea/bea103/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.management.server=http://192.168.0.56:7001 -Djava.library.path=/home/bea/bea103/jrockit_160_05/jre/lib/i386/jrockit:/home/bea/bea103/jrockit_160_05/jre/lib/i386:/home/bea/bea103/jrockit_160_05/jre/../lib/i386::/home/bea/bea103/wlserver_10.3/server/native/linux/i686:/home/bea/bea103/wlserver_10.3/server/native/linux/i686/oci920_8 -Djava.class.path=/home/bea/bea103/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/bea/bea103/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/bea/bea103/jrockit_160_05/lib/tools.jar:/home/bea/bea103/wlserver_10.3/server/lib/weblogic_sp.jar:/home/bea/bea103/wlserver_10.3/server/lib/weblogic.jar:/home/bea/bea103/modu
les/features/weblogic.server.modules_10.3.0.0.jar:/home/bea/bea103/wlserver_10.3/server/lib/webservices.jar:/home/bea/bea103/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/bea/bea103/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/home/bea/bea103 -Dweblogic.system.BootIdentityFile=/home/bea/bea103/user_projects/domains/node_domain/servers/appserver1/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false weblogic.Server
bea
3224
2903
0 17:24 pts/0
00:00:00 grep java

kill掉进程号为3193appserver1
bea@mylinux nodemanager]$ ps -ef|grep java
bea
3169
3146
0 17:17 pts/1
00:00:00 /home/bea/bea103/jrockit_160_05/bin/java -jrockit -Xms128m -Xmx256m -Xverify:none -Djava.security.policy=/home/bea/bea103/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/home/bea/bea103/jrockit_160_05 -DListenAddress=192.168.0.55 -DListenPort=5555 weblogic.NodeManager -v
bea
3262
3169
0 17:28 ?
00:00:00 /home/bea/bea103/jrockit_160_05/jre/bin/java -Dweblogic.Name=appserver1 -Djava.security.policy=/home/bea/bea103/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.management.server=http://192.168.0.56:7001 -Djava.library.path=/home/bea/bea103/jrockit_160_05/jre/lib/i386/jrockit:/home/bea/bea103/jrockit_160_05/jre/lib/i386:/home/bea/bea103/jrockit_160_05/jre/../lib/i386::/home/bea/bea103/wlserver_10.3/server/native/linux/i686:/home/bea/bea103/wlserver_10.3/server/native/linux/i686/oci920_8 -Djava.class.path=/home/bea/bea103/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/bea/bea103/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/bea/bea103/jrockit_160_05/lib/tools.jar:/home/bea/bea103/wlserver_10.3/server/lib/weblogic_sp.jar:/home/bea/bea103/wlserver_10.3/server/lib/weblogic.jar:/home/bea/bea103/modules/features/weblogic.server.modules_10.3.0.0.jar:/home/bea/bea103/wlserver_10.3/server/lib/webservices.jar:/home/bea/bea103/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/bea/bea103/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/home/bea/bea103 -Dweblogic.system.BootIdentityFile=/home/bea/bea103/user_projects/domains/node_domain/servers/appserver1/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false weblogic.Server
bea
3274
2903
0 17:28 pts/0
00:00:00 grep java

可以看到appserver1的进程号已经变化了,同时迅速去观察consoleappserver1的状态为:

等待一会又会回到running状态,如图

测试成功。
8、总结1注意修改 adminserver的参数Hostname Verificationnone.
2Nodemanager在启动的时候会首先去寻找 nodemanager.properties

<Jan 15, 2010 4:59:37 PM> <Loading domains file: /home/bea/bea103/wlserver_10.3/common/nodemanager/nodemanager.domains></font>
<Jan 15, 2010 4:59:39 PM> <Loading identity key store: FileName=/home/bea/bea103/wlserver_10.3/server/lib/DemoIdentity.jks, Type=jks, PassPhraseUsed=true></font>
<Jan 15, 2010 4:59:40 PM> <</font>Node manager configuration properties file ‘/home/bea/bea103/wlserver_10.3/common/nodemanager/nodemanager.properties’ not found. Using default settings.>
如果没有找到,就会采取默认的设置,下次启动会读取这个配置文件,如下:

<Jan 15, 2010 5:09:58 PM> <Loading domains file: /home/bea/bea103/wlserver_10.3/common/nodemanager/nodemanager.domains></font>
<Jan 15, 2010 5:09:58 PM> <Loading identity key store: FileName=/home/bea/bea103/wlserver_10.3/server/lib/DemoIdentity.jks, Type=jks, PassPhraseUsed=true></font>
<Jan 15, 2010 5:09:59 PM> <</font>Loaded node manager configuration properties from ‘/home/bea/bea103/wlserver_10.3/common/nodemanager/nodemanager.properties’>

登录到没配置节点管理器的192.168.0.56去查看,里面只有一个nodemanager.domains,说明在初始状态是没有nodemanager.properties </p>

去验证了下weblogic923forwin的版本,也是只有一个.domains

看看该文件的内容:
[bea@mylinux nodemanager]$ more nodemanager.domains
#Domains and directories created by Configuration Wizard
#Fri Jan 15 15:40:50 EST 2010
wl_server=/home/bea/bea103/wlserver_10.3/samples/domains/wl_server
base_domain=/home/bea/bea103/user_projects/domains/base_domain
node_domain=/home/bea/bea103/user_projects/domains/node_domain
medrec=/home/bea/bea103/wlserver_10.3/samples/domains/medrec
[bea@mylinux nodemanager]$


又看了55上这个文件的内容
[bea@mylinux nodemanager]$ more nodemanager.domains
#Domains and directories created by Configuration Wizard
#Fri Jan 15 15:28:43 EST 2010
wl_server=/home/bea/bea103/wlserver_10.3/samples/domains/wl_server
base_domain=/home/bea/bea103/user_projects/domains/base_domain
node_domain=/home/bea/bea103/user_projects/domains/node_domain
medrec=/home/bea/bea103/wlserver_10.3/samples/domains/medrec

发现这个文件的内容不会变化。

下面是启动了节点管理器后,‘/home/bea/bea103/wlserver_10.3/common/nodemanager文件夹里文件的变化

3)当节点管理器启动后,通过console去启动被管服务器时
会有以下相关的操作:
<Jan 15, 2010 5:20:18 PM> <Creating directory "/home/bea/bea103/user_projects/domains/node_domain/servers/appserver1/security"></font>
<Jan 15, 2010 5:20:18 PM> <Creating directory "/home/bea/bea103/user_projects/domains/node_domain/servers/appserver1/data/nodemanager"></font>
<Jan 15, 2010 5:20:19 PM> <Boot identity properties saved to "/home/bea/bea103/user_projects/domains/node_domain/servers/appserver1/data/nodemanager/boot.properties"></font>
<Jan 15, 2010 5:20:19 PM> <Startup configuration properties saved to "/home/bea/bea103/user_projects/domains/node_domain/servers/appserver1/data/nodemanager/startup.properties"></font> </p>

</td> </tr> </tbody> </table>

附件: 您所在的用户组无法下载或查看附件

</div> </p></div> </p></div> </td> </tr> </tbody> </table></div> </p></div> </p></div>

转载请注明:WebLogic Android 博客 » 转:多机nodemanager测试小记&weblogic103