啟動及停止 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 成員,您必須提供管理者使用者 ID 和密碼。
    <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 伺服器主機資訊


指示主題類型的圖示 參照主題

資訊中心條款 | 意見


「時間戳記」圖示 前次更新: 2015 年 6 月 22 日
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=ragt_wlp_servercommand
檔名:ragt_wlp_servercommand.html