6.15 Zookeeper部署

最后更新于:2022-04-02 07:46:04

## zk 部署 ### **安装** ``` ansible-playbook -i hosts/zk_hosts zookeeper/zk.yml -e '{"zk_version":"3.5.9"}' --tags install_zk ``` ### **初始化配置** (指定zk cluster) ``` ansible-playbook -i hosts/zk_hosts zookeeper/zk.yml -e -e '{"zk_version":"3.5.9"}' -e --tags init_conf ``` ### 启停服务 ``` ansible-playbook -i hosts/zk_hosts zookeeper/zk.yml -e '{"zk_version":"3.5.9"}' --tags start_zk ansible-playbook -i hosts/zk_hosts zookeeper/zk.yml-e '{"zk_version":"3.5.9"}' --tags stop_zk ```
';