was更换java版本,WAS如何更换JDK

切换所有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]#

收起

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值