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

您可以利用 Installation Manager 回應檔來安裝 WebSphere® Application Server Liberty Core

開始之前

請依照安裝 Installation Manager 以及準備安裝 Liberty中的說明來準備供應項目要安裝到其中的各個系統。

關於這項作業

當使用 Installation Manager 時,您可以利用回應檔,以各種方式來安裝供應項目。您可以如下列程序所述使用 GUI 來記錄回應檔、建立新的回應檔,或是複製並修改現有的回應檔。

[8.5.5.4 或更新版本]如果要安裝 Liberty 設定檔 8.5.5.4 版及更新版本,您必須具有 IBM Installation Manager 1.6.2 版或更新的版本。

程序

  1. 選擇性的: 記錄回應檔來安裝供應項目。

    在您的其中一個系統上執行下列動作,來記錄可用來安裝供應項目的回應檔。

    1. 從指令行中,切換至 Installation Manager 安裝目錄中的 eclipse 子目錄。
    2. 利用 -record 選項,從指令行啟動 Installation Manager。
      例如:
      • 適用於 Windows 平台 管理者或非管理者:
        IBMIM.exe -skipInstall "C:\temp\imRegistry"
          -record C:\temp\install_response_file.xml
      • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台管理者:
        ./IBMIM -skipInstall /var/temp/imRegistry 
          -record /var/temp/install_response_file.xml
      • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台非管理者:
        ./IBMIM -skipInstall user_home/var/temp/imRegistry 
          -record user_home/var/temp/install_response_file.xml
      提示: 記錄新回應檔時,您可以指定 -skipInstall 參數。使用此參數具有下列好處:
      • 不會安裝任何檔案,這使得記錄的速度會加快。
      • 如果您設定 -skipInstall 參數來使用暫用資料位置,當記錄時,Installation Manager 會將安裝登錄寫入指定的資料位置。 當再次啟動 Installation Manager,且未設定 -skipInstall 參數時,您可以利用您的回應檔,針對真實的安裝登錄來進行安裝。

        請勿在 Installation Manager 所用的代理程式資料位置上使用 -skipInstall 作業。不支援這項作業。請使用未使用過的可寫入位置,並將該位置重複用於將來的記錄階段作業。

      如需相關資訊,請參閱 IBM® Installation Manager 說明文件

    3. 請遵循利用 GUI 在分散式作業系統上安裝 Liberty 中所說明的指示。
  2. 選擇性的: 建立安裝用的認證儲存檔。如果您使用已鑑別的遠端儲存庫,您可以針對需要鑑別的 URL(例如:遠端儲存庫),將其認證儲存在認證儲存檔中。 若為 IBM Installation Manager 1.6.2 版以及更新版本,請使用 -secureStorageFile-masterPasswordFile 選項,將認證儲存在認證儲存檔中。若為舊版 Installation Manager,-keyring-password 選項是用來存取金鑰環檔案中的認證。在 1.6.2 版中,這些選項已淘汰。因檔案結構的差異,並無金鑰環檔案至儲存檔的移轉路徑。
  3. 利用回應檔來安裝供應項目。

    移至供應項目要安裝到其中的各系統的指令行,切換至 Installation Manager 安裝目錄中的 eclipse/tools 子目錄,然後安裝供應項目。

    例如:
    • 適用於 Windows 平台 管理者或非管理者:
      imcl.exe -acceptLicense
              input C:\temp\install_response_file.xml
              -log C:\temp\install_log.xml
        -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password_file.txt
    • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台管理者:
      ./imcl -acceptLicense
              input /var/temp/install_response_file.xml
              -log /var/temp/install_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/install_response_file.xml
        -log user_home/var/temp/install_log.xml
        -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password_file.txt
    附註:
    • 在這個供應項目的安裝映像檔或儲存庫的 lafilesoffering_name/lafiles 子目錄中,授權合約檔提供了相關的條款、注意事項及其他資訊。
    • 程式可能會將重要的後置安裝指示寫在標準輸出中。

    如需相關資訊,請參閱 IBM Installation Manager 說明文件

範例

適用於 Windows 平台以下是要用來安裝供應項目的回應檔範例。
<?xml version="1.0" encoding="UTF-8"?>
<agent-input clean="true" temporary="true">
<server>
<repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85" />
</server>	<install modify='false'>
<offering id='com.ibm.websphere.liberty.v85'
  profile='WebSphere Liberty V8.5'
  features='embeddablecontainer' installFixes='none'/>
</install>
<profile id='WebSphere Liberty V8.5'
  installLocation='C:\Program Files\IBM\WebSphere\Liberty'>
</profile>
</agent-input>
適用於 AIX 平台適用於 LINUX 平台適用於 Solaris 平台適用於 Windows 平台重要: 如果您要安裝在 64 位元系統上,您必須併入 IBM Software Development Kit 的選項之一。
  • 您可以利用 cic.selector.arch 內容索引鍵及相關的值來指定要安裝的架構,32 位元或 64 位元。
    以下是指定 32 位元架構的範例:
    <profile>
    ...
    <data key='cic.selector.arch' value='x86'/>
    ...
    </ptofile>

    如果您對這個索引鍵沒有任何指定,您會收到系統的正確相符項。 如果是 64 位元系統,安裝會預設為 64 位元安裝。

    您在這裡的選擇會套用到套件群組中所安裝的所有套件。 如需 cic.selector.key 索引鍵支援值的相關資訊,請參閱「Installation Manager 說明文件」中的 cic.selector.key表格。

如果要停用回應檔中的更新項目遠端搜尋,請將下列喜好設定設為 false:
  • offering.service.repositories.areUsed

    用來搜尋遠端儲存庫中已安裝之供應項目的更新項目

  • com.ibm.cic.common.core.preferences.searchForUpdates

    用來搜尋 Installation Manager 的更新項目

例如:
<preference value='false' name='offering.service.repositories.areUsed'/>
<preference value='false' name='com.ibm.cic.common.core.preferences.searchForUpdates'/>
您可以在 IBM Installation Manager 說明文件中,尋找無聲自動喜好設定索引鍵的詳細資料。
下列範例顯示如何變更回應檔,以執行替代動作。
  • 如果要安裝這個供應項目的多重副本,請指定各項安裝的不同安裝位置及新套件群組。舉例來說,如果要將供應項目的第二個副本安裝到 C:\Program Files\IBM\WebSphere\Liberty_2 目錄,並建立 WebSphere Liberty V8.5_2 套件群組,請將:
    <profile id='WebSphere Liberty V8.5'
      installLocation='C:\Program Files\IBM\WebSphere\Liberty'>
    取代為:
    <profile id='WebSphere Liberty V8.5_2'
      installLocation='C:\Program Files\IBM\WebSphere\Liberty_2'>
  • 如果要新增選用特性,請將它們新增到逗點區隔的清單中,成為其中一項。例如:
    <offering id='com.ibm.websphere.liberty.v85'
      profile='WebSphere Liberty V8.5'
      features='embeddablecontainer' installFixes='none'/>
    • 內嵌式 EJB 儲存器和 JPA 用戶端 (embeddablecontainer)

      這個選項會安裝內嵌式 EJB 儲存器和 JPA 用戶端。

      內嵌式 EJB 儲存器是可以用來在獨立式 Java™ Platform Standard Edition (SE) 環境中執行 Enterprise Bean 的 Java 保存檔 (JAR)。您可以在應用程式伺服器之外,利用這個內嵌式儲存器來執行 Enterprise Bean。內嵌式 EJB 儲存器是 EJB 3.1 規格的一部分,主要用於對 Enterprise Bean 商業邏輯進行單元測試。

      JPA 用戶端可以搭配內嵌式 EJB 儲存器,在 Java SE 環境中提供 Java Persistence API 功能。

    如果沒有指定任何特性,就會安裝預設特性 (embeddablecontainer)
  • Liberty 儲存庫[8.5.5.2 或更新版本]您可以指定要從「Liberty 儲存庫」安裝的其他資產。如需「Liberty 儲存庫」資產清單,請參閱 WASdev.net 的「下載」頁面

    如果要安裝「Liberty 儲存庫」的資產,您必須能夠存取網際網路,而且必須要有 IBM Installation Manager 1.6.2 或更新版本。舊版的 Installation Manager 不提供安裝「Liberty 儲存庫」資產的選項。如果您使用回應檔,且尚未將 Installation Manager 更新為 1.6.2 或更新版本,在安裝期間會忽略您在回應檔中指定的資產。

    如果您想安裝其他特性,請在回應檔中指定兩個額外的 data key 元素。您可以使用符號名稱或簡稱。

    下列範例是使用符號名稱來安裝 「Portlet 儲存器」和「Portlet 服務」特性。
    <data key='user.feature' value='com.ibm.websphere.appserver.portlet-2.0,,com.ibm.websphere.appserver.portletserving-2.0'/>
    <data key='user.accept.license' value='true'/>
    下列範例是使用簡稱來安裝「Portlet 儲存器」和「Portlet 服務」特性。
    <data key='user.feature' value='portlet-2.0,,portletserving-2.0'/>
    <data key='user.accept.license' value='true'/>
    [8.5.5.5 或更新版本]若為 8.5.5.5 版及更新版本,不需要 user.accept.license=true
    Liberty 儲存庫[8.5.5.4 或更新版本]從 8.5.5.4 版起,不再提供 extprogmodels 特性。請改為安裝 extendedPackage-1.0 附加程式,或是從 Liberty 儲存庫安裝您需要的個別特性。如需相關資訊,請參閱下列主題:
    下列範例是使用 user.addon 參數來安裝「延伸程式設計模型」,以及使用含有簡稱的 user.feature 參數,來安裝「Portlet 儲存器」與「Portlet 服務」特性:
    <data key='user.addon' value='extendedPackage-1.0'/>
    <data key='user.feature' value='portlet-2.0,,portletserving-2.0'/>
    <data key='user.accept.license' value='true'/>
    [8.5.5.5 或更新版本]若為 8.5.5.5 版及更新版本,不需要 user.accept.license=true
    Liberty 儲存庫[8.5.5.6 或更新版本]您也可以從「Liberty 資產儲存庫服務」實例或本端目錄型儲存庫,來安裝資產。如需相關資訊,請參閱使用 Installation Manager 來安裝資產。在 repository 元素中新增儲存庫 URL 或目錄。如果 Installation Manager 無法辨識儲存庫,請直接指向 repository.config 檔。在您安裝資產時,會依照您的指定順序來存取儲存庫;在下列範例中,會先從「Liberty 資產儲存庫服務」實例 https://your_onprem_asset_repo_url,再從 D:\IBM\LocalAssetRepo 目錄型儲存庫,來安裝資產。
    <server>
    <repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85" />
    <repository location="https://your_onprem_asset_repo_url" />
    <repository location="D:\IBM\LocalAssetRepo" />
    </server>
    依預設,「Liberty 儲存庫」會是安裝期間所存取的最後一個儲存庫。如果要停用對「Liberty 儲存庫」的存取權,請將 user.useLibertyRepository 參數設為 false
    <data key='user.addon' value='extendedPackage-1.0'/>
    <data key='user.feature' value='portlet-2.0,,portletserving-2.0'/>
    <data key='user.useLibertyRepository' value='false'/>

    如果要進一步瞭解「Liberty 儲存庫」及其包含的資產,請參閱 Liberty 儲存庫

  • Installation Manager 可以將舊版的套件儲存起來,以便稍後發生問題時,進行回復。 當 Installation Manager 將套件回復為先前的版本時,會將檔案的現行版本解除安裝,再重新安裝舊版。如果您選擇不儲存回復的檔案,您可以在回應檔中變更下列喜好設定,以防止儲存檔案:
    <preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='true'/>
    改為:
    <preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='false'/>

    如需設定 Installation Manager 喜好設定的相關資訊,請參閱 IBM Installation Manager 說明文件

    提示: 即使您選擇不利用這個選項,將檔案保留在本端以進行回復,您仍可以存取適當的產品儲存庫來回復到任何先前安裝的層次。

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

資訊中心條款 | 意見


「時間戳記」圖示 前次更新: 2015 年 6 月 22 日
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=twlp_ins_installation_dist_silent
檔名:twlp_ins_installation_dist_silent.html