[AIX Solaris HP-UX Linux Windows][IBM i]

使用响应文件安装产品

可以使用 Installation Manager 响应文件来安装任何产品。

开始之前

准备要在其中安装产品的每个系统,如为产品安装准备操作系统所述。

安装 IBM® Installation Manager 并确认您可以访问产品存储库。请参阅安装 Installation Manager在 Installation Manager 中配置产品存储库

安装本产品需要 IBM Installation Manager V1.8.5 或更高版本。

[IBM i]在安装产品之前,请确保用户概要文件具有 *ALLOBJ 和 *SECADM 特权。

关于此任务

可以使用 Installation Manager 响应文件来安装所有产品,其中包括:
  • 所有的 WebSphere Application Server 修订版
  • Application Client for WebSphere Application Server
  • DMZ Secure Proxy Server for WebSphere Application Server
  • IBM HTTP Server
  • Web 服务器插件
  • WebSphere Customization Toolbox

有关产品的完整列表,请参阅用于受支持操作系统的 WebSphere Application Server 产品供应项目

对于转换用户 对于转换用户: IBM SDK Java™ Technology Edition V8 是 WebSphere Application Server V9.0 的 Java SDK 版本。 IBM SDK Java Technology Edition 不再嵌套在任何 WebSphere Application Server 产品中。Java SDK 作为单独产品提供,在安装产品时必须安装此 SDK。trns

过程

  1. 创建响应文件以安装产品。

    响应文件是一个 XML 文件,其中包含安装产品所需的数据,例如,要安装的产品、安装目录和安装包体系结构。

    如果您从已认证的远程存储库安装产品,那么还必须创建下列文件:
    • 主密码文本文件,用于保护认证凭证的安全。
    • 凭证存储文件,用于存储认证凭证
    有关更多信息,请参阅 IBM Installation Manager 文档中的存储凭证

    [AIX Solaris HP-UX Linux Windows]您可以使用 Installation Manager GUI 来记录产品安装响应文件。记录响应文件时,您在 Installation Manager 中所作的选择将存储在响应文件中。有关更多信息,请参阅记录响应文件以安装产品

    要点: 因为 IBM SDK Java Technology Edition 是在您安装产品时必须安装的一个单独产品,所以响应文件必须包含两个 <offering> 元素:一个元素用于产品安装,另一个元素用于 Java SDK。

    要获取用于安装 WebSphere Application Server V9.0 和 IBM SDK Java Technology Edition V8 的样本响应文件,请参阅示例

  2. 使用响应文件来安装产品。
    1. 启动命令行。

      [IBM i]在 CL 命令行上,运行 STRQSH 命令以启动 Qshell 命令 shell。

    2. 切换到 Installation Manager 安装目录中的 eclipse/tools 子目录。
    3. 运行 imcl input 命令并指定响应文件的位置。
      例如:
      • [Windows] 管理员或非管理员:
        imcl.exe -acceptLicense 
          input C:\temp\install_response_file.xml 
          -secureStorageFile C:\IM\credential.store  -masterPasswordFile C:\IM\master_password.txt
          -log C:\temp\install_log.xml 
      • [AIX][HP-UX][Linux][Solaris]管理员:
        ./imcl -acceptLicense 
          input /var/temp/install_response_file.xml 
          -secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password.txt
          -log /var/temp/install_log.xml 
      • [AIX][HP-UX][Linux][Solaris]非管理员:
        ./imcl -acceptLicense 
          input user_home/var/temp/install_response_file.xml 
          -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password.txt
          -log user_home/var/temp/install_log.xml 
      • [IBM i]
        ./imcl -acceptLicense 
          input $HOME/WASFiles/temp/install_response_file.xml 
          -secureStorageFile $HOME/WASFiles/temp/credential.store -masterPasswordFile $HOME/WASFiles/temp/master_password.txt
          -log $HOME/WASFiles/temp/install_log.xml 
      注意:
      • 本产品的安装映像或存储库的 lafilesproduct_name/lafiles 子目录中的许可协议文件内提供了相关条款和条件、声明和其他信息。
      • 程序可能会将重要的安装后指示信息写至标准输出。

      有关更多信息,请参阅 IBM Installation Manager 文档

响应文件示例和修改

以下样本响应文件用于在 Windows 上安装 WebSphere Application Server 和 IBM SDK Java Technology Edition V8。
<?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.ND.v90" />
</server>
<install modify='false'>
<offering id='com.ibm.websphere.ND.v90' 
  profile='IBM WebSphere Application Server V9.0' 
  features='core.feature,ejbdeploy,thinclient,embeddablecontainer' installFixes='none'/>
<offering id='com.ibm.java.jdk.v8'
  profile='IBM WebSphere Application Server V9.0'
  features='com.ibm.sdk.8'/>
</install>
<profile id='IBM WebSphere Application Server V9.0' 
  installLocation='C:\Program Files\IBM\WebSphere\AppServer'>
<data key='eclipseLocation' value='C:\Program Files\IBM\WebSphere\AppServer'/>
<data key='user.import.profile' value='false'/>
<data key='cic.selector.nl' value='en'/>
</profile>
</agent-input>
添加可选功能部件

要添加可选功能部件,请在产品中将每个功能部件添加为逗号分隔列表中的条目。

下表显示了产品标识、每个产品的可选功能部件和缺省功能部件:
表 1. 产品标识和可选功能部件
产品标识 可选功能部件标识 缺省功能部件
WebSphere Application Server Network Deployment

com.ibm.websphere.ND.v90

  • core.feature: WebSphere Application Server
    必须指定此功能部件才能指定以下可选子功能部件:
    • samples:样本应用程序
    • thinclient:独立瘦客户机和资源适配器
    • embeddablecontainer:可嵌入 EJB 容器
    • ejbdeploy:用于 EJB 3.0 以前的模块的 EJBDeploy 工具
注: 以后,无法使用 Installation Manager 的修改、更新或回滚功能来添加或除去 core.feature。只能添加或除去子功能部件。
  • core.feature
    • thinclient
    • embeddablecontainer
    • ejbdeploy
Application Client for WebSphere Application Server

com.ibm.websphere.APPCLIENT.v90

  • samples:样本
  • standalonethinclient.resourceadapter.runtime:独立瘦客户机运行时
  • standalonethinclient.resourceadapter.samples:独立瘦客户机样本
  • embeddablecontainer:可嵌入 EJB 容器
embeddablecontainer
DMZ Secure Proxy Server for IBM WebSphere Application Server

com.ibm.websphere.NDDMZ.v90

  • core.feature: DMZ Secure Proxy Server for IBM WebSphere Application Server
    必须指定此功能部件才能指定以下可选子功能部件:
    • thinclient:独立瘦客户机和资源适配器
无缺省功能部件
Web 服务器插件

com.ibm.websphere.PLG.v90

无可选功能部件 不适用
WebSphere Customization Toolbox

com.ibm.websphere.WCT.v90

  • zpmt:Profile Management Tool(仅限于 z/OS)
  • zmmt:z/OS 迁移管理工具
  • pct:Web 服务器插件配置工具

缺省情况下,将安装所有可选功能部件

例如,要安装 WebSphere Application Server Network Deployment 产品的所有可选功能部件,请将产品定义
<offering id='com.ibm.websphere.ND.v90' 
  profile='IBM WebSphere Application Server V9.0'
  features='core.feature' installFixes='none'/>
中的功能部件替换为
<offering id='com.ibm.websphere.ND.v90' 
  profile='IBM WebSphere Application Server V9.0'
  features='core.feature,samples,ejbdeploy,thinclient,embeddablecontainer' installFixes='none'/>
禁用远程搜索

要在响应文件中禁止对更新进行远程搜索,请将以下首选项设为 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 文档

安装产品的多个副本
要安装产品的多个副本,请为每个安装指定不同的安装位置和新软件包组。例如,要将 WebSphere Application Server 产品的第二个副本安装到 C:\Program Files\IBM\WebSphere\AppServer_2 目录并创建 IBM WebSphere Application Server V9.0_2 软件包组,请执行下列操作:
  1. 替换概要文件名称和安装位置
    <profile id='IBM WebSphere Application Server V9.0' 
      installLocation='C:\Program Files\IBM\WebSphere\AppServer'>
    中的功能部件替换为
    <profile id='IBM WebSphere Application Server V9.0_2'
      installLocation='C:\Program Files\IBM\WebSphere\AppServer_2'>
  2. 替换 Eclipse 位置值
    <data key='eclipseLocation' value='C:\Program Files\IBM\WebSphere\AppServer'/>
    中的功能部件替换为
    <data key='eclipseLocation' value='C:\Program Files\IBM\WebSphere\AppServer_2'/>
  3. 替换产品概要文件名称
    <offering id='com.ibm.websphere.ND.v90' 
      profile='IBM WebSphere Application Server V9.0'
      features='core.feature,ejbdeploy,thinclient,embeddablecontainer' installFixes='none'/>
    中的功能部件替换为
    <offering id='com.ibm.websphere.ND.v90' 
      profile='IBM WebSphere Application Server V9.0_2'
      features='core.feature,ejbdeploy,thinclient,embeddablecontainer' installFixes='none'/>
  4. 替换 Java SDK 产品概要文件名称
    <offering id='com.ibm.java.jdk.v8'
      profile='IBM WebSphere Application Server V9.0'
      features='com.ibm.sdk.8'/>
    中的功能部件替换为
    <offering id='com.ibm.java.jdk.v8'
      profile='IBM WebSphere Application Server V9.0_2'
      features='com.ibm.sdk.8'/>
选择是否保存软件包以进行回滚

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 文档


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



时间戳记图标 最近一次更新时间: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-dist&topic=tins_installation_silent
文件名:tins_installation_silent.html