可以创建 WebSphere® Application
Server Community Edition 完整生命周期管理服务器和基于表达式的动态集群。您可以将受管应用程序部署到这些服务器和动态集群。
开始之前
不推荐使用的功能部件: WebSphere Application Server V9.0 中已弃用辅助生命周期服务器和完整生命周期服务器。请将 WebSphere Liberty 服务器迁移至 Liberty 集合体配置。对于其他服务器类型,没有任何建议的迁移操作。
depfeat
- 确定您要运行的 WebSphere Application
Server Community Edition 的版本:
- 对于完整生命周期管理,请使用 WebSphere Application
Server Community Edition V2 或更高版本。
- 需要其他步骤来启用 WebSphere Application
Server Community Edition V2.1 中的 Java™ 管理扩展 (JMX) 安全。有关更多信息,请阅读“配置 WebSphere Application Server Community
Edition V2.1 服务器的 JMX 安全”。
- 如果您正在使用 WebSphere Application
Server Community Edition V1(所有发行版),那么仅只可以使用辅助生命周期管理。有关配置辅助生命周期服务器的信息,请阅读“配置辅助生命周期 WebSphere Application Server Community
Edition”。
.
- 将 WebSphere Application
Server Community Edition 运行时环境安装到您要在其上运行服务器的节点。您可以使用 WebSphere Application
Server Community Edition 中包括的安装向导,也可以配置集中式安装管理器来安装运行时环境。
- 将您的节点联合到单元中。有关更多信息,请阅读有关 addNode 命令并添加、管理和移除节点的主题。
过程
- 配置中间件描述符,以便运行发现来查找 WebSphere Application
Server Community Edition 运行时环境。 如果使用集中式安装管理器安装 WebSphere Application
Server Community Edition,那么可以跳过此步骤。在管理控制台中,单击。发现服务使用中间件描述符来定义查找运行时环境的位置。验证中间件描述符是否包含您的环境的正确安装位置。 缺省值:
C:\Program Files\IBM\WebSphere\AppServerCommunityEdition
/opt/IBM/WebSphere/AppServerCommunityEdition
- 运行发现以查找您要在其上主管服务器的节点上的 WebSphere Application
Server Community Edition 运行时。 如果使用集中式安装管理器安装 WebSphere Application
Server Community Edition,那么可以跳过此步骤。当 Node Agent 启动时,发现操作会自动运行。发现还可在预定义的时间间隔运行,该时间间隔可在中间件描述符中指定。但是,还可以执行以下步骤来调用发现操作:
- 在管理控制台中,单击。
- 选择想要对其执行发现操作的节点,然后选择运行发现有效操作。
- 单击运行。
- 验证该发现服务是否找到运行时环境。 在管理控制台中,单击。如果存在任何运行时环境,那么会显示以 WASCE 字符串开头的属性。
仅在 wasceRuntime 中间件描述符中列示缺省安装位置。可以修改中间件描述符以便发现操作可查找正确的安装位置。
- 创建 WebSphere Application
Server Community Edition 部署目标。 部署目标是您部署 WebSphere Application
Server Community Edition 应用程序的位置。可以创建单独 WebSphere Application
Server Community Edition 服务器或动态集群。
- 创建 WebSphere Application
Server Community Edition 服务器。
- 在管理控制台中,单击。选择创建新服务器实例,并选择 WebSphere
Application Server Community Edition 服务器类型。还可以单击。
- 选择要在其上运行 WebSphere Application
Server Community Edition 服务器的节点。此节点必须具有 WebSphere Application
Server Community Edition 运行时。
- 选择 WebSphere Application
Server Community Edition 服务器模板。
- 确认并保存 WebSphere Application
Server Community Edition 服务器。
- 创建 WebSphere Application
Server Community Edition 动态集群。
- 在管理控制台中,单击。
- 选择 WebSphere Application
Server Community Edition 服务器动态集群类型,并命名动态集群。
- 要使用完整生命周期管理创建动态集群,请选择使用规则自动定义集群成员。定义成员资格策略以标识动态集群中主管 WebSphere Application
Server Community Edition 服务器的节点。这些节点必须安装 WebSphere Application
Server Community Edition 运行时环境。缺省成员资格策略遵循:
node_property$IS_WASCE_DISCOVERED = 'TRUE'
此成员资格策略查找 WebSphere Application
Server Community Edition V2.0 和更高版本的运行时。如果要指定特定的版本,那么可能要使用下列成员资格策略:
node_property$WASCE_2.0.0 IS NOT NULL
此策略将成员资格定义为运行
WebSphere Application
Server Community Edition V2.0.0 的所有节点。您定义的节点的组必须具有与安装的
WebSphere Application
Server Community Edition 相同的版本。例如,无法在相同动态集群中合并 V1 和 V2 服务器。
- 为要使用的 WebSphere Application
Server Community Edition 运行时环境选择服务器模板。
- 指定其他动态集群属性。
- 保存 WebSphere Application
Server Community Edition 动态集群。
结果
新服务器显示在管理控制台页面上的列表中。如果您看到错误状态图标(

),那么创建过程没有完成。发生此错误是因为
WebSphere Application
Server Community Edition 服务器运行时环境中出现问题。删除服务器并再次尝试创建该服务器。
此管理控制台页面上显示的服务器的列表包括所有完整生命周期、辅助生命周期和发现的 WebSphere Application
Server Community Edition 服务器。如果您已定义 WebSphere Application
Server Community Edition 动态集群,那么集群成员还会列示在此管理控制台页面上。
下一步做什么
- 将应用程序部署到 WebSphere Application
Server Community Edition 服务器和动态集群。有关更多信息,请阅读“部署 WebSphere Application Server Community
Edition 应用程序”。
- 阻止发现检查用于创建受管服务器的安装位置。
- 如果您使用发现查找 WebSphere Application
Server Community Edition 运行时环境,那么可以全局禁用发现,或者可以从中间件描述符移除特定的安装位置。
- 如果使用集中式安装管理器安装 WebSphere Application
Server Community Edition 运行时环境,那么不需要发现来注册配置。请勿在中间件描述符的发现路径中包括集中式安装管理器路径。如果使用了缺省集中式安装管理器安装位置,那么必须全局禁用发现,或将缺省发现位置更改为其他路径。
有关更多信息,请阅读“配置中间件描述符”。
不要使用 WebSphere Application
Server Community Edition 控制台来编辑您的完整生命周期服务器,除非有不可与 Intelligent Management 一起使用的功能。使用 WebSphere Application
Server Community Edition 控制台可导致意外结果。例如,如果在 WebSphere Application
Server Community Edition 控制台中编辑服务器端口号,那么为 Intelligent Management 配置的端口值会被新值覆盖。
不推荐使用的功能部件: WebSphere Application Server V9.0 中已弃用辅助生命周期服务器和完整生命周期服务器。请将 WebSphere Liberty 服务器迁移至 Liberty 集合体配置。对于其他服务器类型,没有任何建议的迁移操作。
depfeat