一、
切换到bin目录下,执行相应命令,依次停止 server 、 node 、dmgr(严格按照此顺序)
/opt/IBM/WebSphere/AppServer/profiles/AppSrv02/bin/stopServer.sh server1 --servername
/opt/IBM/WebSphere/AppServer/profiles/AppSrv02/bin/stopNode.sh
/opt/IBM/WebSphere/AppServer/bin/stopManager.sh
二、删除 wstemp, temp 和 config/temp 文件夹下面的临时文件
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/temp、wstemp、tranlog目录下内容删除。
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/temp目录下内容删除。
四、同步节点:
##同步节点信息
切换到“/opt/IBM/WebSphere/AppServer/profiles/AppSrv02/bin/”下:
执行 :syncNode.sh fqztestap 8879 -username appname -password 000000
------------
其中 “fqztestap”是was所部署在的主机名,linux/unix 下用“uname -all”(或者hostname)获取
比如我执行 “uname -all ”后,显示:
Linux fqztestap 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
第二项即为主机名
------------
五、依次启动 dmgr、node、server (严格按照此顺序)
/opt/IBM/WebSphere/AppServer/bin/startManager.sh
/opt/IBM/WebSphere/AppServer/profiles/AppSrv02/bin/startNode.sh
/opt/IBM/WebSphere/AppServer/profiles/AppSrv02/bin/startServer.sh server1 --servername
以下可供参考:
1.非控制主机节点停止命令在:/opt/IBM/WebSphere/AppServer/bin/stopNode.sh
2.非控制主机同步节点时控制台(dmgr好像要先启动),同步节点时主机名字要用控制主机(即dmgr所在机器)的名字