三台CentOS:Host0,Host1,Host2 在三台中分别安装zookeeper-server yum install zookeeper-server -y 修改zookeeper的配置文件(/etc/zookeeper/conf/zoo.cfg) 因为zookeeper集群共有3个节点,所以在配置文件中添加server.0,server.1,server.2 # Licensed to the Apache Software Foundation (ASF) under one or…