利用回應檔在分散式作業系統上安裝 Liberty
您可以使用 Installation Manager 回應檔,來安裝 WebSphere® Application Server Liberty。
開始之前
請依照安裝 Installation Manager 以及準備安裝 Liberty中的說明來準備供應項目要安裝到其中的各個系統。
關於這項作業
當使用 Installation Manager 時,您可以利用回應檔,以各種方式來安裝供應項目。您可以如下列程序所述使用 GUI 來記錄回應檔、建立新的回應檔,或是複製並修改現有的回應檔。
程序
- 選擇性的: 記錄要用來安裝供應項目的回應檔。
在您的其中一個系統上,執行下列動作來記錄將用來安裝供應項目的回應檔。
- 從指令行中,切換至 Installation Manager 安裝目錄中的 eclipse 子目錄。
- 利用 -record 選項,從指令行啟動 Installation Manager。 例如:
管理者或非管理者:IBMIM.exe -skipInstall "C:\temp\imRegistry" -record C:\temp\install_response_file.xml


管理者:./IBMIM -skipInstall /var/temp/imRegistry -record /var/temp/install_response_file.xml


非管理者:./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 產品說明文件。
- 請遵循利用 GUI 在分散式作業系統上安裝 Liberty中所說明的指示。
- 選擇性的: 如果您使用已鑑別的遠端儲存庫,請建立一個用來進行安裝的認證儲存回應檔。 提示: 在認證儲存檔中,您可以儲存需要鑑別之 URL(例如您的遠端儲存庫)的認證。
- 利用回應檔來安裝供應項目。
- 選擇性的: 利用回應檔來安裝認證儲存檔。
移至供應項目要安裝到其中的各系統的指令行,切換至 Installation Manager 安裝目錄中的 eclipse/tools 子目錄,然後安裝認證儲存檔。
例如:
管理者或非管理者:imcl.exe -acceptLicense input C:\temp\credentialstorage_response_file.xml -log C:\temp\credentialstorage_log.xml


管理者:./imcl -acceptLicense input /var/temp/credentialstorage_response_file.xml -log /var/temp/credentialstorage_log.xml


非管理者:./imcl -acceptLicense input user_home/var/temp/credentialstorage_response_file.xml -log user_home/var/temp/credentialstorage_log.xml
- 利用回應檔來安裝供應項目。
移至供應項目要安裝到其中的各系統的指令行,切換至 Installation Manager 安裝目錄中的 eclipse/tools 子目錄,然後安裝供應項目。
例如:
管理者或非管理者: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


管理者:./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


非管理者:./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
附註:- 在這個供應項目的安裝映像檔或儲存庫的 lafiles 或 offering_name/lafiles 子目錄中,授權合約檔提供了相關的條款、注意事項及其他資訊。
- 該程式可能會將重要的後置安裝指示寫入標準輸出。
如需相關資訊,請閱讀 IBM Installation Manager 產品說明文件。
- 選擇性的: 利用回應檔來安裝認證儲存檔。
範例
以下是要用來安裝供應項目的回應檔範例。
<?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.ND" />
</server> <install modify='false'>
<offering id='com.ibm.websphere.liberty.ND'
profile='WebSphere Liberty'
features='embeddablecontainer' installFixes='none'/>
</install>
<profile id='WebSphere Liberty'
installLocation='C:\Program Files\IBM\WebSphere\Liberty'>
</profile>
</agent-input>
- 新建: 依預設,在您安裝 Liberty 時,會安裝適用於您產品版本的所有 Liberty 特性。您可以不安裝所有特性,而改為安裝自訂的一組 Liberty 附加程式和特性,作法是如下列範例所示,在 user.addon 和 user.feature 內容中指定它們。請注意,特性簡稱或符號名稱必須以兩個逗點區隔。下列範例使用符號名稱來安裝「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 附加程式或特性,對於 user.addonuser.feature 內容,請指定空白值:<data key='user.feature' value=''/> <data key='user.addon' value=''/>如需相關資訊,請參閱下列主題: - 無論是否能夠存取網際網路,您可以從「Liberty 資產儲存庫服務」實例或本端目錄型儲存庫,來安裝資產。如需相關資訊,請參閱使用 Installation Manager 來安裝資產。在 repository 元素中,新增儲存庫 URL、目錄或保存檔路徑。如果 Installation Manager 無法辨識儲存庫,請直接指向 repository.config 檔。當您安裝資產時,會依儲存庫的指定順序來存取儲存庫。
如果要能夠存取 Liberty Repository,請在 data 元素中,將 user.useLibertyRepository 參數設為 true。Liberty Repository 是在安裝期間所存取的最後一個儲存庫。<server> <repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.ND" /> <repository location="https://your_onprem_asset_repo_url" /> <repository location="D:\IBM\LocalAssetRepo" /> <repository location="D:\IBM\LocalAssetRepo2.zip" /> </server><data key='user.useLibertyRepository' value='true'/> - Installation Manager 會根據您的作業系統架構,自動選擇安裝套件的架構。在 64 位元系統上,您可以針對您的作業系統,將下列喜好設定設為 32 位元架構值,來指定 32 位元安裝架構:
<profile> ... <data key='cic.selector.arch' value='x86'/> ... </profile>如需 cic.selector.arch 的架構值清單,請參閱 Installation Manager 產品說明文件中的 imcl 指令的指令行引數表格。
- 如果要停用回應檔中的更新項目遠端搜尋,請將下列喜好設定設為 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 產品說明文件中,尋找無聲自動喜好設定索引鍵的詳細資料。
- offering.service.repositories.areUsed
- 如果要安裝這個供應項目的多重副本,請指定各項安裝的不同安裝位置及新套件群組。比方說,將供應項目的第二個副本安裝到 C:\Program Files\IBM\WebSphere\Liberty_1 目錄中,以及建立 WebSphere Liberty_1 套件群組。
比方說,將
取代為<profile id='WebSphere Liberty' installLocation='C:\Program Files\IBM\WebSphere\Liberty'><profile id='WebSphere Liberty_1' installLocation='C:\Program Files\IBM\WebSphere\Liberty_1'> - 如果要新增選用的內嵌式 EJB 儲存器和 JPA 用戶端特性
(embeddablecontainer),請在供應項目中新增特性。例如:
<offering id='com.ibm.websphere.liberty.ND' profile='WebSphere Liberty' features='embeddablecontainer' installFixes='none'/>註: 從 16.0.0.2 修正套件開始,已針對內嵌式 EJB 儲存器和 JPA 用戶端特性發佈移除注意事項,因此該特性會在未來移除。如需詳細資訊,請參閱移除注意事項。 - 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 產品說明文件。
提示: 即使您選擇不利用這個選項,將檔案保留在本端以進行回復,您仍可以存取適當的產品儲存庫來回復到任何先前安裝的層次。
在分散式作業系統上安裝及解除安裝 Liberty
作業主題
前次更新: 2016 年 6 月 3 日http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-dist&topic=twlp_ins_installation_dist_silent
檔名:twlp_ins_installation_dist_silent.html