CentOS7安装ZooKeeper
作者:互联网
下载
创建一个文件夹存放ZooKeeper,进入该文件夹后使用swet命令下载apache-zookeeper-3.7.0-bin.tar.gz(我的阿里云CentOS7服务器中使用wge命令)
wget https://downloads.apache.org/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz
解压
tar -zxvf apache-zookeeper-3.7.0-bin.tar.gz
配置
进入conf文件夹
cd /root/zookeeper/apache-zookeeper-3.7.0-bin/conf/
复制zoo_sample.cfg到当前目录,并命令为zoo.cfg
cp zoo_sample.cfg zoo.cfg
运行
进入解压后的文件夹apache-zookeeper-3.7.0-bin
启动
./bin/zkServer.sh start
查看状态
查看当前状态,看到下图说明启动成功
./bin/zkServer.sh status
也进入客户端查看运行状态,看到 Welcome to Zookeeper!说明启动成功
./bin/zkCli.sh -server localhost:2181
停止
./bin/zkServer.sh stop
标签:bin,zookeeper,tar,cfg,ZooKeeper,CentOS7,3.7,apache,安装 来源: https://blog.csdn.net/zou666zou/article/details/123592711