Download package
Download rmp from apache, find the fast mirror according to your location
Install JDK
JDK安装
CentOS 7.2.1511 + JDK1.8.0_131环境:Distributor ID: CentOSDescription: CentOS Linux release 7.2.1511 (Core)Release: 7.2.1511 下载地址http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html下载rpm包到本地 安装rpm -ivh jdk-8u131-linux-x64.rpm 环境变量配置vi /etc/profile 加入以下配置: exp…

Hosts
For each server you want join to the zookeeper cluster:
Firewall
Stop firewall or set proper iptables
Untar your tarball
Config
Set configuration of your cluster servers
Server identifier
Add a file /var/lib/zookeeper/myid on your server, the content 1~255 and should be unique for each server
NOTE: Folder /var/lib/zookeeper/ may not exists before you run zkServer.sh
Initialize cluster
Run command to join the cluster