1,安装Linux
2,将zookeeper包上传到Linux服务器
3,给zookeeper包赋予权限
4,解压zookeeper包
5,进入zookeeper根目录
cd conf
cp zoo_sample.cfg zoo.cfg
6,进入zookeeper根目录
cd bin
./zkServer.sh start
7,查看状态:./zkServer.sh status
出现如下内容即ok
[root@localhost bin]# ./zkServer.sh status
JMX enabled by default
Using config: /usr/local/mao/zookeeper-3.4.5/bin/…/conf/zoo.cfg
Mode: standalone