配置Node Manager启动同一机器的两个域
进入/u01/FMW_Home/weblogic/wlserver_10.3/server/bin目录,在需要配置的节点上启动node manager,以weblogic用户登录
c d /u01/FMW_Home/weblogic/wlserver_10.3/server/bin ./ startNodeManager.sh |
建立node manager的相关的目录
mkdir -p /u01/sb/admin/el01cn01/nodemanager
|
Copy nodemanager.properties和startNodeManager.sh到新建的目录
cp /u01/FMW_Home/weblogic/wlserver_10.3/common/nodemanager/nodemanager.properties /u01/sb/admin/el01cn01/nodemanager cp /u01/FMW_Home/weblogic/wlserver_10.3/server/bin/startNodeManager.sh /u01/sb/admin/el01cn01/nodemanager
|
编辑startNodemanager.sh,更新NodeManager Home
NodeManagerHome=/u01/sb/admin/el01cn01/nodemanager |
编辑notemanager.properties,更新粗体的部分
DomainsFile=/u01/sb/admin/el01cn01/nodemanager/nodemanager.domains LogLimit=0 PropertiesVersion=10.3 DomainsDirRemoteSharingEnabled=false javaHome=/u01/FMW_Home/jrockit/jrockit-jdk1.6.0_45-R28.2.7-4.1.0 AuthenticationEnabled=true NodeManagerHome=/u01/sb/admin/el01cn12/nodemanager JavaHome=/u01/FMW_Home/jrockit/jrockit-jdk1.6.0_45-R28.2.7-4.1.0/jre LogLevel=INFO DomainsFileEnabled=true StartScriptName=startWebLogic.sh StopScriptName=stopWebLogic.sh ListenAddress=192.168.10.1 NativeVersionEnabled=true ListenPort=5556 LogToStderr=true SecureListener=false LogCount=1 DomainRegistrationEnabled=false StopScriptEnabled=true QuitEnabled=false LogAppend=true StateCheckInterval=500 CrashRecoveryEnabled=false StartScriptEnabled=true LogFile=/u01/sb/admin/el01cn01/nodemanager/nodemanager.log LogFormatter=weblogic.nodemanager.server.LogFormatter ListenBacklog=50 |
启动weblogic domain,设置nodemanager密码(weblogic/welcome1),同时改变SSL方式为Plain方式
运行nmEnroll,将nodemanager注册到相关的域中
cd /u01/FMW_Home/weblogic/wlserver_10.3/common/bin wlst.sh
connect('weblogic','welcome1','t3://el01cn01:7001')
nmEnroll('/u01/sb/domains/sb_domain', '/u01/sb/admin/el01cn01/nodemanager')
|
停掉weblogic admin server,然后通过NM启动weblogic管理服务器
nmConnect('weblogic','welcome1','el01cn01-priv','5556','sb_domain','/u01/sb/domains/sb_domain',nmType='plain') nmStart('AdminServer') |