依赖
下载安装包
wget https://mirrors.aliyun.com/apache/zookeeper/current/apache-zookeeper-3.8.0-bin.tar.gz
解压安装包
tar -xvf apache-zookeeper-3.8.0-bin.tar.gz
生成配置文件
cd apache-zookeeper-3.8.0-bin
cd conf/
cp zoo_sample.cfg zoo.cfg
启动 zookeeper
cd ../bin/
./zkServer.sh start
恭喜安装完成,zookeeper 的端口为 2181
正文完