利用回應檔在分散式作業系統上安裝 Liberty 修正套件

您可以使用 Installation Manager 回應檔,將 WebSphere® Application Server Liberty 更新為新版本。

開始之前

如果您想從本端目錄型儲存庫或「Liberty 資產儲存庫服務」實例,來安裝 Liberty 資產,請配置儲存庫。如需 Liberty 資產儲存庫的相關資訊,請參閱使用 Installation Manager 來安裝資產。

提示: 作為這篇文章中所說明之程序的替代方法,Installation Manager 可讓您在回應檔或指令行中,利用 updateAll 指令來搜尋及更新所有已安裝的套件。 只有當您具有完整的控制權,可決定將哪些修正程式包含在目標儲存庫中時,才使用此指令。如果建立並指向只包括您要安裝之特定修正程式的一組自訂儲存庫,則確信您應該能夠使用此指令。 如果啟用搜尋服務儲存庫,或直接從其他即時 Web 型儲存庫安裝修正程式,則您可能不選取此選項,以便可以在指令行利用 install 指令並指定 -installFixes 選項,或使用回應檔的 installFixes 屬性,只選取您想要安裝的修正程式。

程序

  1. 如需 WebSphere Application Server Liberty 安裝架構的可用臨時修正程式與修正套件清單,以及每一個修正程式的特定相關資訊,請執行下列動作。
    1. 前往修正程式中心。
    2. 在產品群組中選取 WebSphere。
    3. 選取產品。
    4. 選取已安裝的版本。
    5. 選取您的作業系統作為平台,然後按一下繼續。
    6. 選取瀏覽並找出修正程式,然後按一下繼續。
    7. 按一下每一個修正程式下面的相關資訊,以檢視該修正程式的相關資訊。
    8. 建議:請記錄您要安裝之修正套件的名稱。
  2. 利用下列其中一項程序,使用修正套件來更新 WebSphere Application Server Liberty。
    • 存取包含修正套件的現用服務儲存庫,然後使用 Web 型更新。
      利用本端系統上的 Installation Manager,以現用 Web 型服務儲存庫中的臨時修正程式,來更新 WebSphere Application Server Liberty 。
      • 對於現用服務儲存庫,請使用安裝期間通用的產品供應項目儲存庫所用的相同 URL。 這些 URL 的型樣基礎如下:
        http://www.ibm.com/software/repositorymanager/offering_ID
        其中 offering_ID 是可在所支援作業系統的 Liberty 產品供應項目中找到的供應項目 ID。
      • 這些位置不包含您可以利用 Web 瀏覽器來存取的網頁。 它們是您指定給 Installation Manager 的遠端 Web 型儲存庫位置,讓它能夠維護產品。
      請執行下列動作:
      1. 登入系統。
      2. 如果還沒有包含 IBM 軟體使用者 ID 和密碼的 Installation Manager 認證儲存檔和主要密碼檔,請建立可讓您存取儲存庫的檔案。
        註: 這些是您用來存取受保護的 IBM 軟體網站的認證。
        提示: 當建立認證儲存檔時,如果 imutilsc 指令找不到所指定的 URL,請在儲存庫 URL 位置尾端附加 /repository.config。
      3. 停止正在更新之 WebSphere Application Server Liberty 安裝架構上的所有伺服器及應用程式。
      4. 切換至 Installation_Manager_binaries/eclipse/tools 目錄,其中 Installation_Manager_binaries 是 Installation Manager 的安裝根目錄。
      5. 使用回應檔安裝修正套件。
        例如:
        • 適用於 Windows 平台管理者或非管理者:
          imcl.exe -acceptLicense
            input C:\temp\update_response_file.xml
            -log C:\temp\update_log.xml
            -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password_file.txt
        • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台管理者:
          ./imcl -acceptLicense
            input /var/temp/update_response_file.xml
            -log /var/temp/update_log.xml
            -secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password_file.txt
        • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台非管理者:
          ./imcl -acceptLicense
            input user_home/var/temp/update_response_file.xml
            -log user_home/var/temp/update_log.xml
            -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password_file.txt
    • 從「修正程式中心」下載包含修正套件的檔案,並使用本端更新。
      您可以從「修正程式中心」下載包含修正套件的壓縮檔。每個壓縮的修正套件檔都包含一個修正套件的 Installation Manager 儲存庫,副檔名通常是 .zip。 下載及解壓縮修正套件檔案之後,請利用 Installation Manager 及修正套件來更新 WebSphere Application Server Liberty。
      1. 如果要下載修正套件,請執行下列動作:
        1. 前往修正程式中心。
        2. 在產品群組中選取 WebSphere。
        3. 選取產品。
        4. 選取已安裝的版本。
        5. 選取您的作業系統作為平台,然後按一下繼續。
        6. 選取瀏覽並找出修正程式,然後按一下繼續。
        7. 選取您要下載的修正套件,然後按一下繼續。
        8. 選取下載選項,然後按一下繼續。
        9. 按一下我同意以同意條款。
        10. 按一下立即下載以下載修正套件。
        11. 以二進位格式,將壓縮檔傳送至將在其中安裝該檔案的系統。
        12. 將壓縮的儲存庫檔擷取至系統上的某個目錄。
      2. 請執行下列動作:
        1. 登入系統。
        2. 如果儲存庫需要使用者名稱和密碼,請建立一個認證儲存檔來存取這個儲存庫。

          如需建立 Installation Manager 認證儲存檔的相關資訊,請參閱 IBM Installation Manager 產品說明文件。

          提示: 當建立認證儲存檔時,如果 imutilsc 指令找不到所指定的 URL,請在儲存庫 URL 位置尾端附加 /repository.config。
        3. 停止更新中的 WebSphere Application Server Liberty Network Deployment 安裝架構上的所有伺服器和應用程式。
        4. 切換至 Installation_Manager_binaries/eclipse/tools 目錄,其中 Installation_Manager_binaries 是 Installation Manager 的安裝根目錄。
        5. 使用回應檔安裝修正套件。
          例如:
          • 適用於 Windows 平台管理者或非管理者:
            imcl.exe -acceptLicense
              input C:\temp\update_response_file.xml
              -log C:\temp\update_log.xml
              -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password_file.txt
          • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台管理者:
            ./imcl -acceptLicense
              input /var/temp/update_response_file.xml
              -log /var/temp/update_log.xml
              -secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password_file.txt
          • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台非管理者:
            ./imcl -acceptLicense
              input user_home/var/temp/update_response_file.xml
              -log user_home/var/temp/update_log.xml
              -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password_file.txt

範例

適用於 Windows 平台以下是將產品更新至新版的回應檔範例。
<?xml version="1.0" encoding="UTF-8"?>
<agent-input>
<server>
  <repository location='https://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.ND'/>
</server>	<profile id='WebSphere Liberty' 
  installLocation='C:\Program Files\IBM\WebSphere\Liberty'>
</profile>
<install modify='false'>
  <offering profile='WebSphere Liberty' id='com.ibm.websphere.liberty.ND' 
    version='16.0.2.20161025_2108'/>
</install>
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='C:\Program Files\IBM\IMShared'/>
<preference name='com.ibm.cic.common.core.preferences.connectTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.readTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.downloadAutoRetryCount' value='0'/>
<preference name='offering.service.repositories.areUsed' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.ssl.nonsecureMode' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.http.disablePreemptiveAuthentication' value='false'/>
<preference name='http.ntlm.auth.kind' value='NTLM'/>
<preference name='http.ntlm.auth.enableIntegrated.win32' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.keepFetchedFiles' value='false'/>
<preference name='PassportAdvantageIsEnabled' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.searchForUpdates' value='false'/>
</agent-input>
提示:
  • 當您從 Installation Manager 安裝目錄的 eclipse/tools 子目錄中,執行 imcl listInstallationDirectories -verbose 指令時,可以找到設定檔 ID(<profile . . . id='profile_ID' . . . .> 和 <offering . . . profile='profile_ID' . . . .>)。 它與套件群組的名稱相同。
  • 您可以在所支援作業系統的 Liberty 產品供應項目中,找到供應項目 ID (<offering . . . id='offering_ID' . . . .>)。
  • version 是要安裝的供應項目特定版本(例如 16.0.2.20161025_2108)。 這項指定是選用的。
    • 如果未指定 version,會安裝供應項目的最新版本,以及適用於這個版本的所有臨時修正程式。
    • 如果指定了 version,會安裝指定的供應項目版本,但不會安裝這個版本的臨時修正程式。
    對儲存庫執行下列指令時,可發現已使用底線將產品與服務版本附加至產品與服務 ID 的尾端:
    ./imcl listAvailablePackages -repositories repository_URL_or_path
  • 您也可以在 installFixes 引數中指定 none、recommended 或 all,以指示要隨供應項目安裝哪些臨時修正程式。
    • 如果未指定供應項目版本,installFixes 選項會預設為 all。
    • 如果指定了供應項目版本,installFixes 選項會預設為 none。
  • 新建: 當您更新 Liberty 時,也會更新所有已安裝的 Liberty 附加程式和特性。

    您可以在回應檔中新增 data 元素,來安裝其他特性。如果要安裝特性,請在 user.feature 參數中指定符號名稱或簡稱。如果要安裝附加程式,請新增 data,並在 user.addon 參數中指定簡稱。

    下列範例使用符號名稱來安裝「Portlet 儲存器」特性,使用簡稱來安裝「Portlet 服務」特性,以及安裝「延伸程式設計模型」附加程式。
    <data key='user.feature' value='com.ibm.websphere.appserver.portlet-2.0,,portletserving-2.0'/>
    <data key='user.addon' value='extendedPackage-1.0'/>
    <data key='user.accept.license' value='true'/>
    無論是否能夠存取網際網路,您可以從「Liberty 資產儲存庫服務」實例或本端目錄型儲存庫,來安裝資產。如需相關資訊,請參閱使用 Installation Manager 來安裝資產。在 repository 元素中,新增儲存庫 URL、目錄或保存檔路徑。如果 Installation Manager 無法辨識儲存庫,請直接指向 repository.config 檔。當您安裝資產時,會依儲存庫的指定順序來存取儲存庫。
    <server>
    <repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.ND" />
    <repository location="https://your_onprem_asset_repo_url" />
    <repository location="/QIBM/LocalAssetRepo" />
    <repository location="/QIBM/LocalAssetRepo2.zip" />
    </server>
    如果要能夠存取 Liberty Repository,請在 data 元素中,將 user.useLibertyRepository 參數設為 true。Liberty Repository 是在安裝期間所存取的最後一個儲存庫。
    <data key='user.useLibertyRepository' value='true'/>

    如果要進一步瞭解 Liberty Repository 及其包含的資產,請參閱 Liberty:Liberty Repository。

  • 如果要新增選用的內嵌式 EJB 儲存器和 JPA 用戶端特性 (embeddablecontainer),請在供應項目中新增特性。例如:
    <offering id='com.ibm.websphere.liberty.ND' 
      profile='WebSphere Liberty' 
      features='embeddablecontainer' installFixes='none'/>
    如果該特性已安裝在您現有的安裝架構中,在您更新時,回應檔必須包含該特性。如果您沒有將該特性新增至回應檔,Installation Manager 會移除它。

指示主題類型的圖示 作業主題



「時間戳記」圖示 前次更新: 2016 年 6 月 3 日
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-dist&topic=twlp_ins_upgrade_silent
檔名:twlp_ins_upgrade_silent.html