切换所有Profile的sdk使用版本
在DM、node和server启动的时候执行:
[root@was8555bin]# ./managesdk.sh -enableProfileAll -sdkname 1.8_64 -enableServers
CWSDK1017I:Profile Dmgr01 now enabled to use SDK 1.8_64.
CWSDK1024I:The node default SDK setting for federated profile Node01 has been saved in themaster configuration repository.
CWSDK1025I:A synchronization operation is required before configuration changes tofederated profile Node01 can be used.
CWSDK1017I:Profile Node01 now enabled to use SDK 1.8_64.
CWSDK1001I:Successfully performed the requested managesdk task.
[root@was8555bin]#
检查都安装了什么版本的jdk:
managesdk -listAvailable -verbose
[root@was8555bin]# ./managesdk.sh -listAvailable -verbose
CWSDK1003I:Available SDKs :
CWSDK1005I:SDK name: 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1005I:SDK name: 1.6_64
- com.ibm.websphere.sdk.version.1.6_64=1.6
- com.ibm.websphere.sdk.bits.1.6_64=64
-com.ibm.websphere.sdk.location.1.6_64=${WAS_INSTALL_ROOT}/java
- com.ibm.websphere.sdk.platform.1.6_64=linux
-com.ibm.websphere.sdk.architecture.1.6_64=x86_64
-com.ibm.websphere.sdk.nativeLibPath.1.6_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1001I:Successfully performed the requested managesdk task.
[root@was8555bin]#
检查每个profile都使用的哪个版本的jdk
[root@was8555bin]# ./managesdk.sh -listEnabledProfileAll -verbose
CWSDK1004I:Profile Dmgr01 :
CWSDK1006I:PROFILE_COMMAND_SDK = 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1008I:Node Dmgr01 SDK name: 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1009I:Server dmgr SDK name: 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1004I:Profile Node01 :
CWSDK1006I:PROFILE_COMMAND_SDK = 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1008I:Node Node01 SDK name: 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
- com.ibm.websphere.sdk.architecture.1.8_64=x86_64
-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1009I:Server server01 SDK name: 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1009I:Server nodeagent SDK name: 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1001I:Successfully performed the requested managesdk task.
[root@was8555bin]#
managesdk -listEnabledProfile -profileName AppSrv02 -verbose
[root@was8555bin]# ./managesdk.sh -listEnabledProfile -profileName Node01 -verbose
CWSDK1004I:Profile Node01 :
CWSDK1006I:PROFILE_COMMAND_SDK = 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1008I:Node Node01 SDK name: 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1009I:Server server01 SDK name: 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1009I:Server nodeagent SDK name: 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
-com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java_1.8_64
- com.ibm.websphere.sdk.platform.1.8_64=linux
-com.ibm.websphere.sdk.architecture.1.8_64=x86_64
-com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1001I:Successfully performed the requested managesdk task.
[root@was8555bin]#
收起