在 z/OS 上添加和移除 Liberty 功能部件

可以使用 Installation Manager 在现有安装中添加或移除附加组件和功能部件。您可以同时更改可选可嵌入 EJB 容器功能部件和 Liberty 附加组件及功能部件。

开始之前

访问 WebSphere® Application Server for z/OS® Liberty 的产品存储库。可以用只读方式安装存储库。

决定您所需要的功能部件。所安装的每个 WebSphere Application Server for z/OS Liberty 副本可具有不同的已安装功能部件集。

修改安装时,您可以选择访问 Liberty 存储库 以安装附加组件和功能部件。必须能够访问互联网,才能访问 Liberty 存储库。如果系统无法访问互联网,或者您想要安装定制 Liberty 资产,请设置 Liberty Asset Repository Service 实例或基于本地目录的存储库,然后在 Installation Manager 中添加存储库 URL、目录路径或归档路径。

过程

  1. 安装要添加或移除功能部件的产品的产品文件系统。
  2. 以 Installation Manager 用户标识登录 Unix 系统服务 Shell,然后将目录切换到 Installation Manager 二进制文件位置的 eclipse/tools 子目录。
    例如:
    cd /InstallationManager/bin/eclipse/tools
  3. 要将一个或多个功能部件添加到现有的产品安装,请发出 imcl 命令并指定要添加的功能部件。

    可嵌入 EJB 容器和 JPA 客户机功能部件的功能部件标识为 embeddablecontainer。可以通过指定 -addFeatures 选项和 -removeFeatures 选项来分别添加和移除可选 embeddablecontainer 功能部件。

    注: 自 16.0.0.2 修订包起,发布了针对可嵌入 EJB 容器及 JPA 客户机功能部件的移除通知,因此后续发行版中可能会移除此功能部件。有关更多信息,请参阅移除通知

    在修改现有 Liberty 安装时添加和移除资产的过程与最初安装产品时不同。要添加 Liberty 附加组件或功能部件,请在 user.addAssets 属性中指定符号名称或短名称,并指定 -acceptLicense 参数。要移除附加组件或功能部件,请在 user.removeAssets 属性中指定符号名称或短名称,名称之间使用双逗号进行分隔。

    缺省情况下,在您明确地移除已安装的 Liberty 附加组件和功能部件之前,所有这些附加组件和功能部件将保持处于已安装状态。

    注: 无论您是否能够访问互联网,您都可以从 Liberty Asset Repository Service 实例或基于本地目录的存储库安装资产。在 -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.0portletserving-2.0 Liberty 功能部件。portlet-2.0 功能部件通过使用符号名称来指定,而 ndMemberBundleportletserving-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
  4. 要将一个或多个功能部件从现有的产品安装中移除,请发出 imcl 命令并指定要移除的功能部件。
    以下示例命令用于移除 embeddablecontainer Installation Manager 功能部件、ndMemberBundle Liberty 附加组件和 portlet-2.0portletserving-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
    注: 移除可选功能部件之前,请确保任何应用程序都不依赖于现存的功能部件。
  5. 添加或移除相应的功能部件之后,请卸载产品文件系统,并以只读方式重新安装产品文件系统,供 Liberty 服务器使用。

下一步做什么

定制或利用您添加的任何新功能部件。


用于指示主题类型的图标 任务主题

文件名:twlp_ins_installation_zos_options.html