zookeeper单机模式安装
下载zookeeper
ubuntu下直接用命令下载
wget http://apache.osuosl.org/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz
解压
tar -zvxf zookeeper-3.4.10.tar.gzcd zookeeper-3.4.10/
更改配置文件
进入到conf
目录下复制zoo_sample.cfg文件改名为zoo.cfg
cd confcp zoo_sample.cfg zoo.cfg
启动zookeeper
./bin/zkServer.sh start
然后用jps查看会多出一个QuorumPeerMain
连接到zookeeper
./bin/zkCli.sh -server localhost:2181
help
关闭zookeeper
./bin/zkServer.sh stop
作者:全能程序猿
链接:https://www.jianshu.com/p/9b440a5ef7ba