WebSphere V8.5 靜默安裝升級(二)-使用回應檔靜默安裝軟體包(產生相應檔案,不安裝)以及managesdk管理SDK

來源:互聯網
上載者:User

標籤: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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.