码迷,mamicode.com
首页 > Web开发 > 详细

WebSphere V8.5 静默安装升级(二)-使用响应文件静默安装软件包(生成相应文件,不安装)以及managesdk管理SDK

时间:2017-08-14 16:33:52      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:before   root   format   查询   ***   addition   can   mon   repo   

使用响应文件静默安装软件包(生成相应文件,不安装):
./IBMIM -record /response_files/install_product.xml -skipInstall skipInstall/IBM_product
./imcl input /response_files/install.xml -log /mylog/install_log.xml -acceptLicense

请注意看要点 skipInstall/IBM_product 不要写这个IM的正在用的agentDataLocation 如果写了 就会真正的安装 -skipInstall就无效了

使用响应文件安装:
方式一:导入安装包仓库文件后,通过IM安装时不勾选安装JDK7
切换到IM的安装目录:
cd /opt/IBM/InstallationManager/eclipse
生成安装响应文件:
./IBMIM -record /opt/IBM/install_product.xml -skipInstall /opt/app
通过响应文件安装WebSphere软件:
cd /opt/IBM/InstallationManager/eclipse/tools
./imcl input /opt/IBM/install_product.xml -log /opt/install-websphere_log.xml -acceptLicense

方式二:导入安装包仓库文件后,通过IM安装时勾选安装JDK7
切换到IM的安装目录:
cd /opt/IBM/InstallationManager/eclipse
生成安装响应文件:
./IBMIM -record /opt/IBM/install_product2.xml -skipInstall /opt/app2
通过响应文件安装WebSphere软件:
cd /opt/IBM/InstallationManager/eclipse/tools
./imcl input /opt/IBM/install_product2.xml -log /opt/install-websphere_log2.xml -acceptLicense

检查是否当前WAS已安装的SDK:
cd /opt/IBM/WebSphere/AppServer/bin
./managesdk.sh -listAvailable
CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.8_64_bundled
CWSDK1005I: SDK name: 1.7_64
CWSDK1001I: Successfully performed the requested managesdk task.

managesdk常用命令说明:
#列出当前可用SDK
managesdk.sh -listAvailable
#查询新概要文件创建SDK
managesdk.sh -getNewProfileDefault
#设置新概要文件创建SDK
managesdk.sh -setNewProfileDefault -sdkName 1.7_64
#为所有概要文件设置SDK
managesdk.sh -enableProfileAll -sdkName 1.7_64
#为指定概要文件设置SDK
managesdk.sh -enableProfile –sdkName 1.7_64 –profileName AppSrv01

****************************************************************************
Usage: managesdk -task [ <-parameter> [ <parameter_value> ] | <-parameter> ] .....

task : [ -listAvailable | -listEnabledProfile | -listEnabledProfileAll ]
-listAvailable [-verbose]
-listEnabledProfile -profileName <profile_name> [-verbose]
-listEnabledProfileAll [-verbose]

task : [ -getNewProfileDefault | -setNewProfileDefault ]
-getNewProfileDefault [-verbose]
-setNewProfileDefault -sdkName <sdk_name>

task : [ -getCommandDefault | -setCommandDefault ]
-getCommandDefault [-verbose]
-setCommandDefault -sdkName <sdk_name>

task : [ -enableProfile | -enableProfileAll ]
-enableProfile -sdkName <sdk_name>
-profileName <profile_name>
[-enableServers]
[-user <user_name> -password <password>]

-enableProfileAll -sdkName <sdk_name>
[-enableServers]

task : -help

Where specified, task parameters -profileName and -sdkName are required parameters.

Task parameters :
-profileName <parameter_value> : The name of a profile.
-sdkname <parameter_value> : An SDK name that is enabled for this Websphere installation.
-enableServers : Optional on -enableProfile and -enableProfileAll tasks to enable all application servers to use the specified SDK.
-user and -password : Required for -enableProfile and -enableProfileAll tasks when java security is enabled and the profile is federated.

Special parameters :
-debug - can be used with any task to produce debug information in the command output.
-quiet - can be used with any task to suppress messages in the command output.
-verbose - can be used with -list type task to produce addition command output.

Note : -parameter key words are not case sensitive and can be entered in mixed or monocased text.
Note : parameter values are case sensitive and must be typed with the correct upper and lower case.
Note : Incorrect results can occur when the parameter value case is not typed correctly.

****************************************************************************
确保将 AppServ01 概要文件配置为使用 Java 7;列出可用 Java JDK 以确保系统上安装了 Java 7。
cd /opt/IBM/WebSphere/AppServer/bin
./managesdk.sh -listAvailable -verbose
./managesdk.sh \
-listAvailable \
-verbose

====================================
CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.8_64_bundled
- com.ibm.websphere.sdk.version.1.8_64_bundled=1.8
- com.ibm.websphere.sdk.bits.1.8_64_bundled=64
- com.ibm.websphere.sdk.location.1.8_64_bundled=${WAS_INSTALL_ROOT}/java
- com.ibm.websphere.sdk.platform.1.8_64_bundled=linux
- com.ibm.websphere.sdk.architecture.1.8_64_bundled=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64_bundled=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1005I: SDK name: 1.7_64
- com.ibm.websphere.sdk.version.1.7_64=1.7
- com.ibm.websphere.sdk.bits.1.7_64=64
- com.ibm.websphere.sdk.location.1.7_64=${WAS_INSTALL_ROOT}/java_1.7_64
- com.ibm.websphere.sdk.platform.1.7_64=linux
- com.ibm.websphere.sdk.architecture.1.7_64=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.7_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1001I: Successfully performed the requested managesdk task.

列出与 AppSrv01 关联的 Java 版本。
cd /opt/IBM/WebSphere/AppServer/bin
./managesdk.sh \
-listEnabledProfile \
-profileName AppSrv01 \
-verbose

===================================
CWSDK1004I: Profile AppSrv01 :
CWSDK1006I: PROFILE_COMMAND_SDK = 1.8_64_bundled
- com.ibm.websphere.sdk.version.1.8_64_bundled=1.8
- com.ibm.websphere.sdk.bits.1.8_64_bundled=64
- com.ibm.websphere.sdk.location.1.8_64_bundled=${WAS_INSTALL_ROOT}/java
- com.ibm.websphere.sdk.platform.1.8_64_bundled=linux
- com.ibm.websphere.sdk.architecture.1.8_64_bundled=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64_bundled=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1008I: Node lczeanNode01 SDK name: 1.8_64_bundled
- com.ibm.websphere.sdk.version.1.8_64_bundled=1.8
- com.ibm.websphere.sdk.bits.1.8_64_bundled=64
- com.ibm.websphere.sdk.location.1.8_64_bundled=${WAS_INSTALL_ROOT}/java
- com.ibm.websphere.sdk.platform.1.8_64_bundled=linux
- com.ibm.websphere.sdk.architecture.1.8_64_bundled=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64_bundled=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1009I: Server nodeagent SDK name: 1.8_64_bundled
- com.ibm.websphere.sdk.version.1.8_64_bundled=1.8
- com.ibm.websphere.sdk.bits.1.8_64_bundled=64
- com.ibm.websphere.sdk.location.1.8_64_bundled=${WAS_INSTALL_ROOT}/java
- com.ibm.websphere.sdk.platform.1.8_64_bundled=linux
- com.ibm.websphere.sdk.architecture.1.8_64_bundled=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64_bundled=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1001I: Successfully performed the requested managesdk task.

===================================
如有需要,启用 AppSrv01 概要文件以使用 Java 7。
cd /opt/IBM/WebSphere/AppServer/bin
./managesdk.sh \
-enableProfile \
-sdkName 1.7_64 \
-profileName AppSrv01 \
-enableServers \
-user wpsadmin \
-password passw0rd

====================================
执行命令后输入管理帐号密码即可:
Realm/Cell Name: <default>
Username: wpsadmin
Password:
CWSDK1024I: The node default SDK setting for federated profile AppSrv01 has been saved in the master configuration repository.
CWSDK1025I: A synchronization operation is required before configuration changes to federated profile AppSrv01 can be used.
CWSDK1017I: Profile AppSrv01 now enabled to use SDK 1.7_64.
CWSDK1001I: Successfully performed the requested managesdk task.

参考文档:
关于如何切换JDK版本,请参考:
https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/rxml_managesdk.html
IBM WebSphere SDK Java Technology Edition v7或v7.1 :
http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/tovr_migratingjava.html
https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/tovr_migratingjava.html
Installing and uninstalling SDK Java Technology Edition Version 8.0 on distributed operating systems:
https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.installation.nd.doc/ae/tins_installation_jdk8.html
WASSDK补丁包:
http://www-01.ibm.com/support/docview.wss?uid=swg24042430#80322

WebSphere V8.5 静默安装升级(二)-使用响应文件静默安装软件包(生成相应文件,不安装)以及managesdk管理SDK

标签:before   root   format   查询   ***   addition   can   mon   repo   

原文地址:http://www.cnblogs.com/lczean/p/7357953.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!