在 IBM i 操作系统上使用响应文件在 Liberty 中添加和移除功能部件

可以使用 Installation Manager 响应文件来安装和移除 WebSphere® Application Server Liberty Core 功能部件。

关于此任务

执行此过程以使用 Installation Manager 来通过响应文件以静默方式安装或移除功能部件。

类似于其他 Installation Manager 操作,您可以使用 imcl 命令行工具来调用修改。有关更多信息,请访问 IBM® Installation Manager 信息中心

[8.5.5.4 或更高版本]要安装 Liberty 概要文件 V8.5.5.4 及更高版本,必须具有 IBM Installation Manager V1.6.2 或更高版本。

可选的功能部件: 在以下可选功能部件的列表中,要在响应文件中使用的名称会使用括号括起来:
  • 可嵌入 EJB 容器和 JPA 客户机 (embeddablecontainer)

    此选项会安装可嵌入 EJB 容器和 JPA 客户机。

    可嵌入 EJB 容器是可用来在独立 Java™ Platform, Standard Edition (SE) 环境中运行企业 Bean 的 Java 归档 (JAR) 文件。可以在应用程序服务器外部使用此可嵌入容器来运行企业 Bean。可嵌入 EJB 容器是 EJB 3.1 规范的一部分,并且主要用于单元测试企业 Bean 业务逻辑。

    JPA 客户机可以与可嵌入 EJB 容器一起使用,以在 Java SE 环境中提供 Java Persistence API 功能。

过程

  1. 可选: 如果存储库需要用户名和密码,请创建凭证存储文件以访问此存储库。
    提示: 创建凭证存储文件时,如果 imutilsc 命令找不到指定的 URL,请在存储库 URL 位置的末尾追加 /repository.config
    注: 使用 Installation Manager V1.6.2 和更高版本时,您应该使用 -secureStorageFile-masterPasswordFile 选项将凭证存储在凭证存储文件中。对于版本低于 V1.6.2 的 Installation Manager,使用 -keyring-password 选项来访问密钥环文件中的凭证。V1.6.2 中不推荐使用这些选项。不存在从密钥环文件到存储文件的迁移路径,这是因为,这些文件的结构存在差异。有关使用 -secureStorageFile-masterPasswordFile 选项将凭证存储在凭证存储文件中的更多信息,请参阅 Installation Manager V1.6 信息中心。有关使用 -keyring-password 选项将凭证存储在密钥环文件中的更多信息,请参阅 Installation Manager V1.5 信息中心
  2. 使用具有 *ALLOBJ 和 *SECADM 特权的用户概要文件登录 IBM i 系统。
  3. 在 CL 命令行上,运行 STRQSH 命令以启动 Qshell 命令 shell。
  4. 使用响应文件来安装或移除功能部件。
    切换到 Installation Manager 的安装目录中的 eclipse/tools 子目录,并修改产品。例如:
    ./imcl
      input $HOME/WASFiles/temp/modify_response_file.xml
      -log $HOME/WASFiles/temp/modify_log.xml
      -secureStorageFile $HOME/WASFiles/temp/credential.store -masterPasswordFile $HOME/WASFiles/master_password_file.txt
    注: 程序可能会将重要的安装后指示信息写入标准输出。

    有关使用 Installation Manager 的更多信息,请参阅 IBM Installation Manager 信息中心

示例

  • 以下是用来在安装中修改功能部件的响应文件示例:
    • 以下是响应文件,用来将可嵌入 EJB 容器和 JPA 客户机添加至 /QIBM/ProdData/WebSphere/AppServer/V85/LibertyCore 目录中所安装的现有产品:
      <?xml version="1.0" encoding="UTF-8"?>
      <agent-input>
      <server>
        <repository location='https://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85'/>
      </server>
      <profile id='WebSphere Liberty V8.5' installLocation='/QIBM/ProdData/WebSphere/AppServer/V85/LibertyCore'>
        <data key='was.install.os400.profile.location' value='/QIBM/UserData/WebSphere/AppServer/V85/LibertyCore'/>
      </profile>
      <install modify='true'>
        <offering profile='WebSphere Liberty V8.5' features='embeddablecontainer' id='com.ibm.websphere.liberty.v85'/>
      </install>
      <preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='/QIBM/UserData/InstallationManager/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>
    • 要改变此响应文件以移除功能部件,只需将 install 标记更改为 uninstall。以下是经过修改以移除可嵌入 EJB 容器和 JPA 客户机的同一个响应文件:
      <?xml version="1.0" encoding="UTF-8"?>
      <agent-input>
      <server>
        <repository location='https://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85'/>
      </server>
      <profile id='WebSphere Liberty V8.5' installLocation='/QIBM/ProdData/WebSphere/AppServer/V85/LibertyCore'>
        <data key='was.install.os400.profile.location' value='/QIBM/UserData/WebSphere/AppServer/V85/LibertyCore'/>
      </profile>
      <uninstall modify='true'>
        <offering profile='WebSphere Liberty V8.5' features='embeddablecontainer' id='com.ibm.websphere.liberty.v85'/>
      </uninstall>
      <preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='/QIBM/UserData/InstallationManager/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>
    • 要使用单个响应文件将添加功能部件和移除功能部件这两个操作合并,请同时添加安装操作和卸载操作。
  • 以下是用来在安装中修改功能部件的 imcl 命令的示例:
    ./imcl modify com.ibm.websphere.liberty.v85
      -addFeatures embeddablecontainer
      -repositories http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85
      -installationDirectory /QIBM/ProdData/WebSphere/AppServer/V85/LibertyCore
      -secureStorageFile /var/credential.store -masterPasswordFile /var/master_password_file.txt

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

信息中心的条款和条件 | 反馈


时间戳记图标 最近一次更新时间: Wednesday, 2 September 2015
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=twlp_ins_modify_is
文件名:twlp_ins_modify_is.html