使用响应文件在分布式操作系统上安装 Liberty 修订包

可以使用 Installation Manager 响应文件,将 WebSphere® Application Server Liberty Core 更新到更高版本。

关于此任务

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

Liberty Repository[8.5.5.6 或更高版本]如果要从基于本地目录的存储库或 Liberty Asset Repository Service 实例中安装 Liberty 资产,请配置这些存储库。有关 Liberty 资产存储库的更多信息,请参阅使用 Installation Manager 安装资产

提示: 作为本主题中描述的过程的替代方法,在响应文件或命令行中使用 Installation Manager updateAll 命令来搜索和更新所有已安装软件包。仅当您完全了解目标存储库中包含了哪些修订时才使用此命令。创建并指向一组定制存储库,它们仅包含您要安装的特定修订。如果启用服务存储库搜索,或者直接从其他基于 Web 的实时存储库安装修订,那么您可能不想选择此选项,以便能够通过以下方式只选择您想要安装的修订:在命令行上将 -installFixes 选项与 install 命令一起使用,或在响应文件中使用 installFixes 属性。

过程

  1. 要获取适用于 WebSphere Application Server Liberty Core 安装版本的临时修订和修订包的列表,以及每个修订的特定信息,请执行下列操作。
    1. 转至 Fix Central
    2. 选择 WebSphere 作为产品组。
    3. 选择 WebSphere Application Server 作为产品。
    4. 选择已安装的版本。
    5. 选择您的操作系统作为平台,然后单击继续
    6. 选择浏览以查找修订,然后单击继续
    7. 单击每个修订下方的更多信息以查看有关修订的信息。
    8. 记录您想要安装的修订包的名称。
  2. 执行下列其中一个过程以使用修订包来更新 WebSphere Application Server Liberty Core
    • 访问内含修订包的实时服务存储库,并使用基于 Web 的更新。
      使用本地系统上的 Installation Manager,利用基于 Web 的实时服务存储库中的临时修订,更新 WebSphere Application Server Liberty Core
      • 对于实时服务存储库,请使用安装期间一般可用产品存储库所使用的那些 URL。这些 URL 基于以下模式:
        http://www.ibm.com/software/repositorymanager/offering_ID
        其中 offering_ID 是您可以在用于受支持操作系统的 WebSphere Application Server 产品上找到的产品标识。
      • 这些位置不包含可以使用 Web 浏览器来访问的 Web 页面。它们是您对 Installation Manager 指定的基于 Web 的远程存储库位置,以便 Installation Manager 能维护产品。
      执行下列操作:
      1. 登录系统。
      2. 创建允许您访问存储库的文件。Installation Manager 凭证存储文件和主密码文件包含 IBM 软件用户标识和密码以允许您访问受保护的 IBM 软件 Web 站点。创建凭证存储文件时,如果 imutilsc 命令找不到指定的 URL,请在存储库 URL 位置的末尾追加 /repository.config
        注: 对于 Installation Manager V1.6.2 和更高版本,应使用 -secureStorageFile-masterPasswordFile 选项将凭证存储在凭证存储文件中。在先前版本的 Installation Manager 中,-keyring-password 选项用于访问密钥环文件中的凭证。V1.6.2 中不推荐使用这些选项。不存在从密钥环文件到存储文件的迁移路径,这是因为,这些文件的结构存在差异。
      3. 停止要更新的 WebSphere Application Server 安装版本上的所有服务器和应用程序。
      4. 切换到 Installation_Manager_binaries/eclipse/tools 目录,其中 Installation_Manager_binaries 是 Installation Manager 的安装根目录。
      5. 使用响应文件来安装修订包。
        例如:
        • 适用于 Windows 平台 管理员或非管理员:
          imcl.exe -acceptLicense 
            input C:\temp\update_response_file.xml
            -log C:\temp\update_log.xml
            -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password_file.txt
        • 适用于 AIX 平台适用于 HP UNIX 平台适用于 LINUX 平台适用于 Solaris 平台管理员:
          ./imcl -acceptLicense
            input /var/temp/update_response_file.xml
            -log /var/temp/update_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/update_response_file.xml
            -log user_home/var/temp/update_log.xml
            -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password_file.txt
    • 从 Fix Central 下载包含修订包的文件,然后使用本地更新。
      可以从 Fix Central 下载包含修订包的压缩文件。每个压缩修订包文件都包含修订包的 Installation Manager 存储库,并且通常具有 .zip 扩展名。下载并解压修订包文件之后,请使用 Installation Manager,利用修订包来更新 WebSphere Application Server Liberty。
      1. 要下载修订包,请执行下列操作:
        1. 转至 Fix Central
        2. 选择 WebSphere 作为产品组。
        3. 选择 WebSphere Application Server 作为产品。
        4. 选择已安装的版本。
        5. 选择您的操作系统作为平台,然后单击继续
        6. 选择浏览以查找修订,然后单击继续
        7. 选择要下载的修订包,然后单击继续
        8. 选择下载选项,然后单击继续
        9. 单击我同意以同意条款和条件。
        10. 单击立即下载以下载修订包。
        11. 将二进制格式的压缩文件传输到要在其上进行安装的系统。
        12. 将压缩的存储库文件解压到系统上的目录。
      2. 执行下列操作:
        1. 登录系统。
        2. 如果存储库需要用户名和密码,请创建凭证存储文件以访问此存储库。

          有关如何为 Installation Manager 创建凭证存储文件的更多信息,请参阅 IBM Installation Manager 信息中心

          提示: 创建凭证存储文件时,如果 imutilsc 命令找不到指定的 URL,请在存储库 URL 位置的末尾追加 /repository.config
        3. 停止要进行更新的 WebSphere Application Server Liberty Core 安装上的所有服务器和应用程序。
        4. 切换到 Installation_Manager_binaries/eclipse/tools 目录,其中 Installation_Manager_binaries 是 Installation Manager 的安装根目录。
        5. 使用响应文件来安装修订包。
          例如:
          • 适用于 Windows 平台 管理员或非管理员:
            imcl.exe -acceptLicense 
              input C:\temp\update_response_file.xml
              -log C:\temp\update_log.xml
              -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password_file.txt
          • 适用于 AIX 平台适用于 HP UNIX 平台适用于 LINUX 平台适用于 Solaris 平台管理员:
            ./imcl -acceptLicense
              input /var/temp/update_response_file.xml
              -log /var/temp/update_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/update_response_file.xml
              -log user_home/var/temp/update_log.xml
              -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password_file.txt

示例

适用于 Windows 平台以下是用于将产品更新到更高版本的响应文件的示例。
<?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='C:\Program Files\IBM\WebSphere\Liberty'>
</profile>
<install modify='false'>
  <offering profile='WebSphere Liberty V8.5' id='com.ibm.websphere.liberty.v85' 
    version='8.5.5.20101025_2108'/>
</install>
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='C:\Program Files\IBM\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>
提示:
  • 概要文件标识(<profile . . . id='profile_ID' . . . .><offering . . . profile='profile_ID' . . . .>)可以在从 Installation Manager 安装目录的子目录 eclipse/tools 中运行 imcl listInstallationDirectories -verbose 命令时找到。它与软件包组具有相同名称。
  • 可在 WebSphere Application Server 产品中找到适用于受支持操作系统的产品标识 (<offering . . . id='offering_ID' . . . .>)
  • version 是要安装的产品的特定版本(例如 8.5.5.20101025_2108)。可以选择指定此内容。
    • 如果指定 version,那么将安装产品的最新版本以及该版本的所有临时修订。
    • 如果指定了 version,那么将安装产品的指定版本,但不会安装该版本的临时修订。
    对存储库运行以下命令时,可以看到产品版本通过下划线附加到产品标识的末尾:
    ./imcl listAvailablePackages -repositories source_repository
  • 您也可以通过 installFixes 参数指定 nonerecommendedall,以指示要随产品一起安装的临时修订。
    • 如果指定产品版本,那么 installFixes 选项缺省为 all
    • 如果指定了产品版本,那么 installFixes 选项缺省为 none
  • Liberty Repository[8.5.5.2 或更高版本]可以指定要从 Liberty Repository 安装的其他资产。有关 Liberty Repository 资产的列表,请参阅 WASdev.net 上的 Downloads 页面

    要安装 Liberty Repository 资产,您必须可访问互联网,且必须具有 IBM Installation Manager V1.6.2 或更高版本。Installation Manager 的先前版本不具有用于安装 Liberty Repository 资产的选项。如果您使用响应文件并且未将 Installation Manager 更新为 V1.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 或更高版本]对于 V8.5.5.5 及更高版本,不需要 user.accept.license=true
    [8.5.5.3 或更高版本]注: 如果要更新为 V8.5.5.3 及之前安装的 Liberty Repository 功能部件,但目前未连接至 IBM WebSphere Liberty Repository,那么不能使用响应文件进行更新。而是应该通过运行 imcl 命令并指定 user.feature="" 参数来更新产品。
    Liberty Repository[8.5.5.4 或更高版本]从 V8.5.5.4 开始,extprogmodels 功能部件不再可用。反而应安装 extendedPackage-1.0 附加组件,或从 Liberty Repository 安装您需要的各个功能部件。请参阅以下主题以获取更多信息:
    以下示例使用 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 或更高版本]对于 V8.5.5.5 及更高版本,不需要 user.accept.license=true
    Liberty Repository[8.5.5.6 或更高版本]还可从 Liberty Asset Repository Service 实例或基于本地目录的存储库中安装资产。有关更多信息,请参阅使用 Installation Manager 安装资产。在 repository 元素上添加存储库 URL 或目录。如果 Installation Manager 不识别该存储库,请直接指向 repository.config 文件。安装资产时,系统会按您指定存储库的顺序访问存储库;在以下示例中,首先从 Liberty Asset Repository Service 的 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 Repository 是安装期间所访问的最后一个存储库。要禁用对 Liberty Repository 的访问,请将 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 Repository 及其包含的资产的更多信息,请参阅Liberty Repository

  • 更新产品时,响应文件必须包含产品初始安装中所使用的功能部件;否则,将无法按预期进行更新。如果您不将这些功能部件添加至响应文件,那么 Installation Manager 会假定您要将这些功能部件移除。

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

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


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