启动和停止 Liberty 集合体成员

集合体控制器提供了一个 ServerCommands MBean,可以用来启动或停止集合体成员。

先决条件

  • 成员服务器在其 server.xml 文件中必须启用了 collectiveMember-1.0 功能部件。
  • 成员必须加入集合体。

    有关更多信息,请参阅配置 Liberty 集合体

    适用于已分发平台适用于 IBM i 平台注: collectiveController-1.0 功能部件及其功能仅在 WebSphere® Application Server Liberty Network Deployment 和 WebSphere Application Server Liberty for z/OS® 中可用。该功能部件在 WebSphere Application Server Liberty、WebSphere Application Server Liberty - Express® 或 WebSphere Application Server Liberty Core 中不可用。如果您已安装 WebSphere Application Server Liberty Network Deployment,那么可以使用它的 collectiveController-1.0 功能部件来处理 WebSphere Application Server Liberty、WebSphere Application Server Liberty - Express 或 WebSphere Application Server Liberty Core 安装中的集合体成员。

安装

要使集合体控制器能够停止和启动成员服务器,可能需要将 <hostAuthInfo> 元素添加至成员的 server.xml 文件。缺省情况下,每个成员尝试使用基于 SSH 密钥的认证。在服务器启动时,在 ${server.config.dir}/resources/security/ssh 下生成了一对 RSA 密钥。会自动将公用密钥添加至用户的 authorized_keys 文件。专用密钥将发送至控制器。如果 SSH 不可用:
  • 对于 Windows 成员,您必须提供管理员用户标识和密码。
    <hostAuthInfo rpcHost="member_host_name"
              rpcUser="admin_user_ID"
              rpcUserPassword="admin_password"
              />
  • 对于 Linux、AIX®、HP-UX z/OS 或 Solaris 成员,建议使用基于 SSH 密钥的认证。如果您想要使用用户名和密码来进行认证,请在 server.xml 文件中指定用户名和密码。
    <hostAuthInfo rpcHost="member_host_name"
              rpcUser="user_ID"
              rpcUserPassword="password"
              />

有关如何构造 Liberty 集合体的信息,请参阅配置 Liberty 集合体

有关从控制器运行 ServerCommands MBean 的信息,请参阅有关 ServerCommands MBean 的 API 文档。

请参阅覆盖 Liberty 服务器主机信息,以了解更多详细信息。


用于指示主题类型的图标 参考主题

信息中心的条款和条件 | 反馈


时间戳记图标 最近一次更新时间: Wednesday, 2 September 2015
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=ragt_wlp_servercommand
文件名:ragt_wlp_servercommand.html