![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
![[IBM i]](../images/iseries.gif)
使用响应文件安装产品
可以使用 Installation Manager 响应文件来安装任何产品。
开始之前
准备要在其中安装产品的每个系统,如为产品安装准备操作系统所述。
安装 IBM® Installation Manager 并确认您可以访问产品存储库。请参阅安装 Installation Manager和在 Installation Manager 中配置产品存储库。
安装本产品需要 IBM Installation Manager V1.8.5 或更高版本。
在安装产品之前,请确保用户概要文件具有 *ALLOBJ 和 *SECADM 特权。
关于此任务
- 所有的 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 产品供应项目。

过程
响应文件示例和修改
<?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'/>
- core.feature: WebSphere Application Server
- 禁用远程搜索
要在响应文件中禁止对更新进行远程搜索,请将以下首选项设为 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 软件包组,请执行下列操作:
- 选择是否保存软件包以进行回滚
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 文档。