未完待续
在zookeeper容器中 配置文件的位置 /conf/zoo.cfg
bash-4.4# cd /conf/ bash-4.4# pwd /conf bash-4.4# ls configuration.xsl log4j.properties zoo.cfg zoo_sample.cfg bash-4.4# ls -l total 16 -rw-r--r-- 1 zookeepe dialout 535 Jun 29 2018 configuration.xsl -rw-r--r-- 1 zookeepe dialout 2161 Jun 29 2018 log4j.properties -rw-r--r-- 1 zookeepe zookeepe 160 Feb 1 05:53 zoo.cfg -rw-r--r-- 1 zookeepe dialout 922 Jun 29 2018 zoo_sample.cfg bash-4.4#
常用脚本文件的位置为 /zookeeper-3.4.13/bin
bash-4.4# pwd /zookeeper-3.4.13/bin bash-4.4# ls -l total 44 -rwxr-xr-x 1 501 dialout 232 Jun 29 2018 README.txt -rwxr-xr-x 1 501 dialout 1937 Jun 29 2018 zkCleanup.sh -rwxr-xr-x 1 501 dialout 1056 Jun 29 2018 zkCli.cmd -rwxr-xr-x 1 501 dialout 1534 Jun 29 2018 zkCli.sh -rwxr-xr-x 1 501 dialout 1759 Jun 29 2018 zkEnv.cmd -rwxr-xr-x 1 501 dialout 2696 Jun 29 2018 zkEnv.sh -rwxr-xr-x 1 501 dialout 1089 Jun 29 2018 zkServer.cmd -rwxr-xr-x 1 501 dialout 6773 Jun 29 2018 zkServer.sh -rwxr-xr-x 1 501 dialout 996 Jun 29 2018 zkTxnLogToolkit.cmd -rwxr-xr-x 1 501 dialout 1385 Jun 29 2018 zkTxnLogToolkit.sh bash-4.4#
查看zookeeper 状态
bash-4.4# zkServer.sh status ZooKeeper JMX enabled by default Using config: /conf/zoo.cfg Mode: standalone
docker中zookeeper集群的安装与使用 以及zookeeper集群对mysq集群的管理
原文:https://www.cnblogs.com/huanglei2010/p/10349179.html