使用 Ant 任务安装
使用 Ant 任务将 MobileFirst Server 组件安装到应用程序服务器上。
您可以查找用于在 mfp_install_dir/MobileFirstServer/configuration-samples 目录中安装 MobileFirst Server 的样本配置文件。
还可以使用 Server Configuration
Tool 创建配置,并使用 导出 Ant 文件。样本 Ant 文件具有与 Server Configuration
Tool 相同的限制:
- 所有组件(MobileFirst Operations Console、MobileFirst Server 管理服务、MobileFirst Server 实时更新服务、MobileFirst Server 工件和 MobileFirst 运行时)均在同一个应用程序服务器中。但是,在 WebSphere® Application Server Network Deployment 上,当您在集群上进行安装时,可以为管理和实时更新服务以及为运行时指定不同的集群。
- 如果已安装 MobileFirst Server 推送服务,还可以将其安装在同一服务器上。但是,在 WebSphere Application Server Network Deployment 上,当您在集群上进行安装时,可以为推送服务指定另一集群。
- 所有组件均使用相同的数据库系统和用户。对于 DB2®,所有组件还使用相同的模式。
- Server Configuration Tool 可以为单台服务器安装组件。要在多台服务器上进行安装,必须在运行该工具后配置场。WebSphere Application Server Network Deployment 上不支持服务器场配置。
您可以使用 Ant 任务将 MobileFirst Server 服务配置为在服务器场中运行。要在场中包含您的服务器,需要指定某些特定属性,这些属性相应配置应用程序服务器。有关使用 Ant 任务配置服务器场的更多信息,请参阅使用 Ant 任务安装服务器场。
对于拓扑和网络流中支持的其他拓扑,可以修改样本 Ant 文件。
对 Ant 任务的引用如下所示:
要了解使用样本配置文件和任务进行安装的概述,请参阅在命令行方式下安装 MobileFirst Server。
您可以使用作为产品安装的一部分的 Ant 分发版来运行 Ant 文件。例如,如果您有 WebSphere Application Server Network Deployment 集群,并且数据库为 IBM DB2,那么可以使用 mfp_install_dir/MobileFirstServer/configuration-samples/configure-wasnd-cluster-db2.xml
Ant 文件。编辑文件并输入所有必需属性后,可从 mfp_install_dir/MobileFirstServer/configuration-samples 目录运行以下命令:
- mfp_install_dir/shortcuts/ant -f configure-wasnd-cluster-db2.xml help - 此命令显示安装、卸载或更新某些组件的 Ant 文件的所有可能的目标的列表。
- mfp_install_dir/shortcuts/ant -f configure-wasnd-cluster-db2.xml install - 此命令使用在 Ant 文件属性中输入的参数,在 WebSphere Application Server Network Deployment 集群上安装 MobileFirst Server(使用 DB2 作为数据源)。
安装后,请复制 Ant 文件,使您能够重新使用它来应用修订包。 有关更多信息,请参阅使用 Ant 文件应用修订包。