Weblogic NodeManager 的配置使用

self_control發表於2014-12-19
1、配置計算機節點管理器執行環境 (不用操作)
nodemaneger HOME目錄:weblogic/wlserver_10.3/common/nodemanager


[weblogic@wls nodemanager]$ pwd 
/u02/weblogic/wlserver_10.3/common/nodemanager
[weblogic@wls nodemanager]$ ls -l
總計 32
-rw-r----- 1 weblogic weblogic 130 12-11 05:24 nm_data.properties
-rw-r----- 1 weblogic weblogic 147 12-07 10:29 nodemanager.domains
-rw-r----- 1 weblogic weblogic 680 12-11 05:24 nodemanager.log
-rw-r----- 1 weblogic weblogic 822 12-11 05:24 nodemanager.properties


2、指定節點管理器的使用者名稱密碼
針對一個domain 使用一個統一的使用者名稱密碼,這個domain中的節點管理器都從管理伺服器下載。

控制檯:點選域,安全-節點管理器口令。可以修改。
此操作對應的配置檔案為:


[weblogic@wls nodemanager]$ pwd
/u02/weblogic/user_projects/domains/base_domain/config/nodemanager


[weblogic@wls nodemanager]$ cat *
#Node manager user information
#Sun Dec 07 10:29:29 CST 2014
hashed={Algorithm\=SHA-256}T/BxUu8AFDY+shoDdarrJ0vuzsKx24mKvwYL08LE2TE\=
[weblogic@wls nodemanager]$ cat *
#Node manager user information
#Thu Dec 11 09:10:31 CST 2014
hashed={Algorithm\=SHA-256}nSfOtTJcs43OzaWaBY3yV8TGQfW0eWtT0r0mG1f1OIc\=


3、配置一個計算機,使用nodemanager. 怎麼讓domain 認識到這個計算機上有個節點管理器
domian-環境-計算機-新增計算機-節點管理器--伺服器關聯


啟用後,點選監視。可以看到節點管理器的工作狀況。


4、配置節點管理器的 nodemanager.domains 檔案
   nodemanager.domains 這個檔案中只會自動加上本機上的domain。
   使用wlt 
[weblogic@wls bin]$ pwd
/u02/weblogic/wlserver_10.3/common/bin


建立node1 的資料夾。
/u02/weblogic/user_projects/domains/base_domain/servers/node1


[weblogic@wls bin]$ ./wlst.sh 
Initializing WebLogic Scripting Tool (WLST) ...


Welcome to WebLogic Server Administration Scripting Shell


Type help() for help on available commands


wls:/offline> connect()
Please enter your username :weblogic
Please enter your password :
Please enter your server URL [t3://localhost:7001] :t3://192.168.37.129:7001
Connecting to t3://192.168.37.129:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'base_domain'.


Warning: An insecure protocol was used to connect to the 
server. To ensure on-the-wire security, the SSL port or 
Admin port should be used instead.


wls:/base_domain/serverConfig> 
wls:/base_domain/serverConfig> nmEnroll('/u02/weblogic/user_projects/domains/base_domain/servers/node1')
Enrolling this machine with the domain directory at /u02/weblogic/user_projects/domains/base_domain/servers/node1 


...
Successfully enrolled this machine with the domain directory at 


/u02/weblogic/user_projects/domains/base_domain/servers/node1.
wls:/base_domain/serverConfig>    
wls:/base_domain/serverConfig> disconnect()      
Disconnected from weblogic server: AdminServer
wls:/offline> exit();



/u02/weblogic/wlserver_10.3/server/bin 啟動節點管理器例項。
./startNodeManager.sh




再找監視中檢視,還是非活動。
看日誌有一個警告。
警告: Uncaught exception in server handlerjavax.net.ssl.SSLKeyException: [Security:090482]BAD_CERTIFICATE alert 


was received from wls - 192.168.37.129. Check the peer to determine why it rejected the certificate chain (trusted 


CA configuration, hostname verification). SSL debug tracing may be required to determine the exact reason the 


certificate was rejected.


下面再進行一個操作就可以了。
到AdminServer的SSL設定,高階。主機名驗證,設定成none.
再重啟後就可以成功在控制檯停啟受管理伺服器了。




測試節點管理器  
/u02/weblogic/user_projects/domains/base_domain/servers/node1/servers/Server-0/data/nodemanager/Server-0.pid
找到pid;
kill -9 4115【檔案中的程式id】
可以看到自動重啟Server-0了。

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

相關文章