群體控制器提供可用來啟動或停止群體成員的 ServerCommands MBean。
必要條件
- 成員伺服器的 server.xml 檔必須已啟用 collectiveMember-1.0 特性。
- 成員必須加入群體中。
如需相關資訊,請參閱配置 Liberty 群體。

註: 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 無法使用:
如需如何建構 Liberty 群體的相關資訊,請參閱配置 Liberty 群體。
如需從控制器執行 ServerCommands MBean 的相關資訊,請參閱 ServerCommands MBean 的 API 文件。
如果需要詳細資訊,請參閱置換 Liberty 伺服器主機資訊。