如何設定weblogic的nodemanger配置

jaymarco發表於2020-11-05

1、修改 nodemager 管理器使用者名稱和密碼

選擇base_domain下面的安全選項,點選高階列表,修改節點使用者名稱和節點管理器密碼。

對應伺服器配置檔案: /u01/bea1036/user_projects/domains/base_domain/config/nodemanager/nm_password.properties


2、新增計算機

選擇計算機,新建計算機配置計算機名稱和IP地址

選擇計算機名稱,進去選擇伺服器,新增 server

domain 下只有一個計算機,計算機下可以配置多個server

3、啟動節點命令

使用如下命令來啟動節點:

/u01/bea1036/wlserver_10.3/server/bin/startNodeManager.sh  192.168.1.200 5556

啟動完後發現計算機的節點狀態還是非活動狀態,觀察發現日誌檔案有一個SSL 校驗控制檯。

節點已經啟動完畢,但如下報如下錯誤,需要透過關閉主機名驗證來解決

2014-8-17 17:34:49 weblogic.nodemanager.server.Handler run

警告: Uncaught exception in server handlerjavax.net.ssl.SSLKeyException: [Security:090482]BAD_CERTIFICATE alert was received from 192.168.1.200 - 192.168.1.200. 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.

javax.net.ssl.SSLKeyException: [Security:090482]BAD_CERTIFICATE alert was received from 192.168.1.200 - 192.168.1.200. 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.

        at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireException(Unknown Source)

        at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertReceived(Unknown Source)

        at com.certicom.tls.record.alert.AlertHandler.handle(Unknown Source)

        at com.certicom.tls.record.alert.AlertHandler.handleAlertMessages(Unknown Source)

        at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)

        at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)

        at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)

        at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)

        at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)

        at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)

        at com.certicom.tls.record.ReadHandler.read(Unknown Source)

        at com.certicom.io.InputSSLIOStreamWrapper.read(Unknown Source)

        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)

        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)

        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)

        at java.io.InputStreamReader.read(InputStreamReader.java:167)

        at java.io.BufferedReader.fill(BufferedReader.java:136)

        at java.io.BufferedReader.readLine(BufferedReader.java:299)

        at java.io.BufferedReader.readLine(BufferedReader.java:362)

        at weblogic.nodemanager.server.Handler.run(Handler.java:71)

        at java.lang.Thread.run(Thread.java:662)

如下狀態代表節點啟動成功

4、其他節點配置

#cd /u01/bea1036/wlserver_10.3/common/bin

#./wlst.sh

wls:/offline> connect()

Please enter your username :weblogic

Please enter your password :

Please enter your server URL [t3://localhost:7001] :t3://192.168.1.200:7201

Connecting to t3://192.168.1.200:7201 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> nmEnroll(r'/u01/bea1036/wlserver_10.3/common/nodemanager')

啟動nodemanager

$cd /u01/bea1036/wlserver_10.3/server/bin

$./startNodeManager.sh  192.168.1.232 5556

透過控制檯統一受理各節點下的受管理伺服器


有需要的朋友可以關注我的公眾號,文章每日一更




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

相關文章