1、创建数据文件、日志文件目录
mkdir data
mkdir log
2、拷贝配置文件
cp zoo_sample.cfg zoo.cfg
3、修改配置文件,增加数据文件和日志文件存放路径。
vi zoo.cfg
dataLogDir=
dataDir=
开机启动
vi /etc/rc.local
su - root -c '/opt/positec/zookeeper/bin/zkServer.sh start'