WebSphere V8.5 靜默安裝升級(三)-命令查看建立刪除WAS概要檔案

來源:互聯網
上載者:User

標籤:bootstra   ddn   address   apu   nic   jdk   sdk   靜默   asn   

【命令查看已建的WAS概要檔案】:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -listProfiles
【命令刪除WAS概要檔案】:
方案一:

1. 找到profileRegistry.xml,在目錄/opt/IBM/WebSphere/AppServer/properties裡,去掉想刪除的profile的配置即可。
2. 刪除profileName.sh 在目錄/opt/IBM/WebSphere/AppServer/properties/fsdb裡,刪除
3. 將profile的實際儲存目錄及內容刪除,如:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01


方案二:
刪除概要檔案:
WAS_HOME/bin/manageprofiles.[sh|bat] -delete -profileName profile name
重新整理概要檔案註冊表(例如,刪除概要檔案後):
WAS_HOME/bin/manageprofiles.[sh|bat] -validateAndUpdateRegistry
列出現有概要檔案:
WAS_HOME/bin/manageprofiles.[sh|bat] -listProfiles
刪除概要檔案例子:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -delete -profileName AppSrv01
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -delete -profileName Dmgr01
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -validateAndUpdateRegistry

【命令建立概要檔案】:以下案例是在同一台主機上建立dmgr和node.
建立Dmgr01:
方式一(不設定連接埠):
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh \
-create \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/dmgr \
-hostName was \
-profileName Dmgr01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 \
-cellName wasCell01 \
-nodeName wasCellManager01 \
-enableAdminSecurity true \
-adminUserName wpsadmin \
-adminPassword passw0rd

方式二(設定連接埠):
連接埠檔案_portdef_DMgr.props 如下:
CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS=9403
WC_adminhost=9060
DCS_UNICAST_ADDRESS=9352
BOOTSTRAP_ADDRESS=9809
SAS_SSL_SERVERAUTH_LISTENER_ADDRESS=9401
CELL_DISCOVERY_ADDRESS=7277
SOAP_CONNECTOR_ADDRESS=8879
ORB_LISTENER_ADDRESS=9100
CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS=9402
WC_adminhost_secure=9043
執行建立Dmgr01命令:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/dmgr \
-hostName was\
-profileName Dmgr01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 \
-portsFile /opt/IBM/WebSphere/AppServer/profiles/_portdef_DMgr.props \
-cellName wasCell01 \
-nodeName wasCellManager01 \
-enableAdminSecurity true \
-adminUserName wpsadmin \
-adminPassword passw0rd

建立AppSrv01:
方式一(不設定連接埠):
聯合Dmgr:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh \
-create \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed \
-hostName was\
-profileName AppSrv01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 \
-cellName wasCell02 \
-nodeName wasNode01 \
-dmgrHost 192.168.182.100 \
-dmgrPort 8879 \
-dmgrAdminUserName wpsadmin \
-dmgrAdminPassword passw0rd
-isDefault

不聯合Dmgr:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh \
-create \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed \
-hostName was\
-profileName AppSrv01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 \
-cellName wasCell02 \
-nodeName wasNode01 \
-enableAdminSecurity true \
-adminUserName wasadmin \
-adminPassword passw0rd \
-isDefault
然後通過addNode命令添加節點到dmgr:
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/addNode.sh 192.168.182.100 8879 -username wpsadmin -password passw0rd

方式二(設定連接埠):
連接埠檔案_portdef_AppSvr.props 如下:
CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS=9201
DCS_UNICAST_ADDRESS=9353
NODE_DISCOVERY_ADDRESS=7272
NODE_IPV6_MULTICAST_DISCOVERY_ADDRESS=5001
BOOTSTRAP_ADDRESS=2809
SAS_SSL_SERVERAUTH_LISTENER_ADDRESS=9901
SOAP_CONNECTOR_ADDRESS=8878
NODE_MULTICAST_DISCOVERY_ADDRESS=5000
ORB_LISTENER_ADDRESS=9101
CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS=9202
執行建立AppSrv01命令:
聯合Dmgr:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh \
-create \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed \
-hostName was\
-profileName AppSrv01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 \
-portsFile /opt/IBM/WebSphere/AppServer/profiles/_portdef_AppSvr.props \
-cellName wasCell02 \
-nodeName wasNode01 \
-dmgrHost 192.168.182.100 \
-dmgrPort 8879 \
-dmgrAdminUserName wpsadmin \
-dmgrAdminPassword passw0rd
-isDefault

不聯合Dmgr:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh \
-create \
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed \
-hostName was\
-profileName AppSrv01 \
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 \
-portsFile /opt/IBM/WebSphere/AppServer/profiles/_portdef_AppSvr.props \
-cellName wasCell02 \
-nodeName wasNode01 \
-enableAdminSecurity true \
-adminUserName wasadmin \
-adminPassword passw0rd \
-isDefault
然後通過addNode命令添加節點到dmgr:
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/addNode.sh 192.168.182.100 8879 -username wpsadmin -password passw0rd

問題一:啟動Dmgr01時報java.lang.NoClassDefFoundError: com.ibm.ws.xd.heapdetect.HeapUsageListener
原因:WebSphere是非root部署,用非root帳號建立概要檔案後使用root啟動,停止後使用非root帳號啟動時會出現該報錯。
解決辦法:
初始化執行個體:
/app/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/osgiCfgInit.sh


參考文檔:
建立 WebSphere Application Server Network Deployment 概要檔案
https://www.ibm.com/support/knowledgecenter/zh/SSLKT6_7.6.0/com.ibm.mam.inswas.doc/install/t_ccmdb_manconfigj2ee.html
關於如何切換JDK版本,請參考:
https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/rxml_managesdk.html

WebSphere V8.5 靜默安裝升級(三)-命令查看建立刪除WAS概要檔案

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.