以下遇到的问题,及具体的解决方法都是在WebSphere Application Server - ND 7.0.0.15下面!!
在安装配置was cluster的过程中,由于一些强制操作,导致某个node的serverindex.xml文件丢失,以至于无法启动Dmgr
我做了如下操作,并直至解决问题,记录如下:
cd /opt/IBM/WebSphere/AppServer/bin
./manageprofiles.sh -listProfiles
[Dmgr01, AppSrv01]
./manageprofiles.sh -delete -profileName AppSrv01
INSTCONFSUCCESS: Success: The profile no longer exists.
./manageprofiles.sh -delete -profileName Dmgr01
INSTCONFSUCCESS: Success: The profile no longer exists.
./manageprofiles.sh -create -profileName Dmgr01 -profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/dmgr -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -hostName linuxserver1
./manageprofiles.sh -create -profileName AppSrv01 -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -hostName linuxserver1 -validatePorts -samplesPassword 123456
./manageprofiles.sh -create -profileName AppSrv01 -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -hostName linuxserver2 -validatePorts -samplesPassword 123456
上面,必须要设置samplesPassword 并且对密码有限制,之前我用wasadmin或者admin都不行,后来就用了123456才可以,这个问题貌似还是websphere的一个bug, 可以参考下面IBM文档
所以以后安装was的时候,不要安装AppServer samples
阅读(2033) | 评论(0) | 转发(0) |