码迷,mamicode.com
首页 > Web开发 > 详细

WebSphere V8.5 静默安装升级(三)-命令查看创建删除WAS概要文件

时间:2017-08-14 16:39:46      阅读:369      评论:0      收藏:0      [点我收藏+]

标签: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概要文件

标签:bootstra   ddn   address   apu   nic   jdk   sdk   静默   asn   

原文地址:http://www.cnblogs.com/lczean/p/7357961.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!