使用命令行命令进行安装
您可以使用命令 shell 来安装 IBM® Engineering Lifecycle Management 产品。 此方法也称为 静默安装
。
开始之前
- 您的平台必须具有受支持的 IBM Installation Manager 版本。 Web 安装程序下载包含 IBM Installation Manager。 继续进行的最简单方法是获取适用于您平台的 Web 安装程序下载项。
- 您必须具有针对要安装的产品定制的 IBM Installation Manager 响应文件。 Web 安装程序下载包含样本响应文件,用于安装每个可用的产品。
- 您必须具有要安装的每个产品的 IBM Installation Manager 存储库。 在产品下载页面的“All Downloads”部分中提供了这些存储库。
过程
- 下载您的平台的相应 Web 安装程序文件,并将内容解压缩到硬盘驱动器上的某个位置。注意:
- 将您下载的任何其他 IBM Installation Manager 存储库文件解压缩到 Web 安装程序所在的目录中。
在 IBM AIX® 平台上,请勿使用 jar 命令来解压缩软件包。 而是,请使用 unzip 命令。
- 打开命令 Shell,并切换到您的平台的相应 Installation Manager 和响应文件所在的子目录:
Windows: ExtractedDir\im\win32.win32.x86
Linux® x86: ExtractedDir/im/linux.gtx.x86
Linux on Power: ExtractedDir/im/linux.gtx.ppc
Linux for System z®: ExtractedDir/im/linux.gtx.s390
AIX: ExtractedDir/im/aix.motif.ppc
- 两个样本响应文件用于安装 Jazz ® Team Server 和基于 Jazz 的应用程序: silent-install-server.xml 和 silent-install-server2.xml。注意:
- 如果在运行脚本的机器上未安装 IBM Installation Manager ,请 silent-install-server2.xml 安装 IBM Installation Manager。 如果要使用 silent-install-server.xml 脚本进行安装,请确保已安装 IBM Installation Manager 。
- 这些响应文件包含使用了 -acceptLicense 参数的命令行调用示例。 在尝试进行命令行安装之前,请查看产品下载包的顶级目录 /license 中的许可协议。 请在命令行中使用 -acceptLicense 参数指示接受此许可协议。
- 每个响应文件都包含参考要在安装期间使用的 IBM Installation Manager 存储库的行。 编辑 repository location 属性以指向您将 IBM Installation Manager 存储库文件解压缩到的目录中的 repository.config 文件。
<repository location='../repository.config' /> - 缺省情况下,为 WebSphere Liberty 服务器部署配置了响应文件。 要修改 WebSphere® Application Server 部署的响应文件,请完成以下步骤:
- 搜索
user.com.ibm.team.install.jfs.appserver.noappserver.disable并将其值变更为false。 - 搜索
user.com.ibm.team.install.jfs.appserver.liberty.disable并将其值变更为true。 - 从以下部分移除注释,并指定用于安装 Web 应用程序 WAR 文件的位置:

<data key='user.JazzFoundationServer.NoAppServer.WebApps.InstallLocation' value='C:\tmp\silent-install\JazzTeamServer\server\webapps'/>
<data key='user.JazzFoundationServer.NoAppServer.WebApps.InstallLocation' value='/tmp/silent-install/JazzTeamServer/server/webapps'/>
- 搜索
silent-install-server.xml 响应文件会生成 Engineering Lifecycle Management 产品的安装,这些产品可以压缩并重定位到文件系统上的其他位置,也可以重新定位到具有相同操作系统和体系结构的其他计算机。 要在 Windows 上使用此安装方法,请运行以下命令并在 C:\tmp\silent-install\JazzTeamServer 目录中查找服务器安装:.\userinstc -acceptLicense -dataLocation C:\tmp\silent-install\data -silent -showVerboseProgress -nosplash -input silent-install-server.xml
要在 UNIX 系统上使用此安装方法,请运行以下命令并在 /tmp/silent-install/JazzTeamServer 目录中查找服务器安装:./userinstc -acceptLicense -dataLocation /tmp/silent-install/data -silent -showVerboseProgress -nosplash -input silent-install-server.xmlsilent-install-server2.xml 响应文件通过使用平台的缺省 IBM Installation Manager 安装位置来安装 Jazz Team Server 。
在 Windows 上,要以管理员身份安装到共享区域中,请在以下命令中使用 installc 变体:.\installc -acceptLicense -showVerboseProgress -input silent-install-server2.xml --launcher.ini silent-install.ini要安装到特定于用户的位置,请在以下命令中使用 userinstc 变量:.\userinstc -acceptLicense -showVerboseProgress -input silent-install-server2.xml --launcher.ini user-silent-install.ini
在 UNIX 系统上,要以管理员身份安装到共享区域中,请在以下命令中使用 installc 变体:./installc -acceptLicense -showVerboseProgress -input silent-install-server2.xml --launcher.ini silent-install.ini要安装到特定于用户的位置,请在以下命令中使用 userinstc 变量:./userinstc -acceptLicense -showVerboseProgress -input silent-install-server2.xml --launcher.ini user-silent-install.ini - 要取消安装某个应用程序,搜索具有 TODO 注释的类似于以下内容的行:
例如,如果您不想安装“变更和配置管理”应用程序,那么找到下面所显示的行,然后移除或者注释掉具有 XML 元素<!-- TODO: Remove line below to prevent installation of [Name of application or feature] --><offering .../>的行:<!-- TODO: Remove line below to prevent installation of the Change and Configuration Management app. --> <offering profile="TMP" id='com.ibm.team.install.jfs.app.rtc'/> - 缺省情况下, jrs 产品会安装所有报告功能部件。 如果要安装功能部件子集,请添加 features 参数并列出要安装的功能部件 (以逗号分隔) ,例如:
<offering id='com.ibm.team.install.jfs.app.jrs' features='lqe,dcc'/> - 其他应用程序安装的响应文件在结构和功能上与 silent-install-server2.xml 文件相似。 以下示例显示如何使用 silent-install-buildsystem.xml 响应文件安装 Build System Toolkit ,以及如何安装 Jazz Authorization Server 以进行 Jazz 安全体系结构单点登录 (SSO) 认证。
- 使用 silent-install-buildsystem.xml 响应文件安装 Build System Toolkit
在 Windows 上,要以管理员身份安装到共享区域中,请在以下命令中使用 installc 变体:.\installc -acceptLicense -showVerboseProgress -input silent-install-buildsystem.xml --launcher.ini silent-install.ini要安装到特定于用户的位置,请使用 userinstc 变体,如以下命令所示:.\userinstc -acceptLicense -showVerboseProgress -input silent-install-buildsystem.xml --launcher.ini user-silent-install.ini
在 UNIX 系统上,要以管理员身份安装到共享区域中,请在以下命令中使用 installc 变体:./installc -acceptLicense -showVerboseProgress -input silent-install-buildsystem.xml --launcher.ini silent-install.ini要安装到特定于用户的位置,请使用 userinstc 变体,如以下命令所示:./userinstc -acceptLicense -showVerboseProgress -input silent-install-buildsystem.xml --launcher.ini user-silent-install.ini - 使用 silent-install-jas.xml 和 silent-install-jas2.xml 响应文件安装 Jazz Authorization Server
silent-install-jas.xml 响应文件生成 Jazz Authorization Server 的安装,可以将其压缩并重定位到文件系统上的其他位置,也可以将其重定位到具有相同操作系统和体系结构的其他计算机。
在 Windows 上,运行以下命令并在 C:\tmp\silent-install\JazzAuthServer 目录中查找服务器安装:.\userinstc -dataLocation C:\tmp\silent-install\data -silent -showVerboseProgress -nosplash -input silent-install-jas.xml -acceptLicense
在 UNIX 系统上,运行以下命令并在 /tmp/silent-install/JazzAuthServer 目录中查找 Jazz Authorization Server 安装:./userinstc -dataLocation /tmp/silent-install/data -silent -showVerboseProgress -nosplash -input silent-install-jas.xml -acceptLicensesilent-install-jas2.xml 响应文件将 Jazz Authorization Server 安装到本地机器上的 IBM Installation Manager 实例中。
在 Windows 上,要以管理员身份安装至共享区域,请在以下命令中使用 installc 变体:.\installc -showVerboseProgress -input silent-install-jas2.xml --launcher.ini silent-install.ini -acceptLicense要安装到特定于用户的位置,请使用 userinstc 变体,如以下命令所示:.\userinstc -showVerboseProgress -input silent-install-jas2.xml --launcher.ini user-silent-install.ini -acceptLicense
在 UNIX 系统上,要以管理员身份安装到共享区域中,请在以下命令中使用 installc 变体:./installc -showVerboseProgress -input silent-install-jas2.xml --launcher.ini silent-install.ini -acceptLicense要安装到特定于用户的位置,请使用 userinstc 变体,如以下命令所示:./userinstc -showVerboseProgress -input silent-install-jas2.xml --launcher.ini user-silent-install.ini -acceptLicense
要安装其他产品,请替换响应文件的名称。 例如,要安装 IBM Engineering Workflow Management Client for Eclipse IDE,请在安装 Build System Toolkit 的示例中,将 silent-install-buildsystem.xml 替换为 silent-install-client.xml。
- 使用 silent-install-buildsystem.xml 响应文件安装 Build System Toolkit