您可以使用 Installation Manager,在現有安裝架構中新增或移除附加程式和特性。您可以同時變更選用的內嵌式 EJB 儲存器特性,以及 Liberty 附加程式和特性。
開始之前
存取 WebSphere® Application Server for z/OS® Liberty 的產品儲存庫。儲存庫可以用唯讀方式來裝載。
請決定您需要的特性。
每個已安裝的 WebSphere Application Server for z/OS Liberty 副本都可以有一組不同的已安裝特性。
當您修改安裝架構時,您可以選擇存取 Liberty Repository 來安裝附加程式和特性。如果要存取 Liberty Repository,必須能夠存取網際網路。如果您的系統無法存取網際網路,或者您想安裝自訂的 Liberty 資產,請設定「Liberty 資產儲存庫服務」實例或本端目錄型儲存庫,然後在 Installation Manager 中新增儲存庫 URL、目錄路徑或保存檔路徑。
程序
- 裝載要新增或移除特性之產品的產品檔案系統。
- 利用 Installation Manager 使用者 ID 來登入 UNIX 系統服務 Shell,將目錄切換至 Installation Manager 二進位檔位置的 eclipse/tools 子目錄。
例如:
cd /InstallationManager/bin/eclipse/tools
- 如果要新增一或多個特性到現有的產品安裝架構中,請發出 imcl 指令,並指定要新增的特性。
內嵌式 EJB 儲存器和 JPA 用戶端特性的特性 ID 是
embeddablecontainer。如果要新增選用的 embeddablecontainer 特性,請指定 -addFeatures 選項,如果要移除此特性,請指定 -removeFeatures 選項。
註: 從 16.0.0.2 修正套件開始,已針對內嵌式 EJB 儲存器和 JPA 用戶端特性發佈移除注意事項,因此該特性會在未來移除。如需詳細資訊,請參閱移除注意事項。
在修改現有的 Liberty 安裝架構時,新增與移除資產,與您在起始安裝產品時的作法不同。如果要新增 Liberty 附加程式或特性,請在 user.addAssets 內容中指定符號名稱或簡稱,並指定 -acceptLicense 參數。如果要移除附加程式或特性,請在 user.removeAssets 內容中指定符號名稱或簡稱,並以兩個逗點區隔。
依預設,您已安裝的所有 Liberty 附加程式和特性仍維持已安裝,除非您明確移除它們。
註: 無論是否能夠存取網際網路,您可以從「Liberty 資產儲存庫服務」實例或本端目錄型儲存庫,來安裝資產。請在
-repositories 參數中新增儲存庫 URL、目錄路徑或保存檔路徑。會依照這些儲存庫的指定順序來存取。如需這些資產儲存庫的相關資訊,請參閱使用 Installation Manager 來安裝資產。如果要從
IBM
WebSphere Liberty Repository 來安裝資產,您必須能夠存取網際網路。如果要啟用對 Liberty Repository 的存取權,請在 -properties 參數中,將 user.useLibertyRepository 選項設為 true。Liberty Repository 是在安裝期間所存取的最後一個儲存庫。
提示: 從 Liberty 安裝架構,使用 installUtility find 動作,列出您可以安裝之資產的簡稱。
下列範例指令是新增
embeddablecontainer Installation Manager
特性、
ndMemberBundle
Liberty 附加程式,以及
portlet-2.0 和
portletserving-2.0
Liberty 特性。
portlet-2.0 特性是以符號名稱指定,
ndMemberBundle 和
portletserving-2.0 則以簡稱來指定。
./imcl modify com.ibm.websphere.liberty.zOS
-addFeatures embeddablecontainer
-properties user.addAssets=ndMemberBundle,,com.ibm.websphere.appserver.portlet-2.0,,portletserving-2.0
-repositories http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.zOS
-installationDirectory /InstallationManager/products/WebSphere/Liberty/16.0.0.2
-secureStorageFile /InstallationManager/im.ssf -masterPasswordFile /InstallationManager/master.password
-acceptLicense
- 如果要從現有的產品安裝架構中移除一或多個特性,請發出 imcl 指令,並指定要移除的特性。
下列範例指令是移除
embeddablecontainer Installation Manager
特性、
ndMemberBundle
Liberty 附加程式,以及
portlet-2.0 和
portletserving-2.0
Liberty 特性。
./imcl modify com.ibm.websphere.liberty.zOS
-removeFeatures embeddablecontainer
-properties user.removeAssets=ndMemberBundle,,com.ibm.websphere.appserver.portlet-2.0,,portletserving-2.0
-installationDirectory /InstallationManager/products/WebSphere/Liberty/16.0.0.2
-secureStorageFile /InstallationManager/im.ssf -masterPasswordFile /InstallationManager/master.password
註: 移除選用特性之前,請確定沒有任何應用程式相依於目前這些特性。
- 當新增或移除適當的特性時,請卸載產品檔案系統,再將它重新裝載成唯讀,供 Liberty 伺服器使用。