docker exec -it $(docker ps | grep zookeeper|awk '{print $1}') zkServer.sh status
返回结果
ZooKeeper JMX enabled by default
Using config: /conf/zoo.cfg
Client port found: 2181. Client address: localhost. Client SSL: false.
docker exec -it $(docker ps | grep zookeeper|awk '{print $1}') zkServer.sh status
返回结果
ZooKeeper JMX enabled by default
Using config: /conf/zoo.cfg
Client port found: 2181. Client address: localhost. Client SSL: false.