WebSphere8.5.5.2修改默认Java版本为JDK7

在WebSphere8.5.5.2中默认使用的是JDK6,如果想升级成JDK7,可以使用下面方法。

查看一下WebSphere已有的JDK版本

# cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01
# bin/managesdk.sh -listAvailable
CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.6_64
CWSDK1005I: SDK name: 1.7.1_64
CWSDK1001I: Successfully performed the requested managesdk task.

切换JDK

# bin/managesdk.sh -enableProfile -profileName AppSrv01 -sdkName 1.7.1_64 -enableServers# bin/managesdk.sh -enableProfileAll -sdkName 1.7.1_64 -enableServers

切换后,要记着重新启动各服务。


Start Service

cd /opt/IBM/WebSphere/AppServer/profiles/
AppSrv01/bin/startNode.sh
Dmgr01/bin/startManager.sh

Stop Service

cd /opt/IBM/WebSphere/AppServer/profiles/
Dmgr01/bin/stopManager.sh
AppSrv01/bin/stopNode.sh

你可能感兴趣的:(Java)