[Linu]安装zookeeper

版权声明:本文为博主原创文章,未经博主允许不得转载。有任何问题请邮件联系[email protected] https://blog.csdn.net/drdongshiye/article/details/84197972

1.下载 http://zookeeper.apache.org/releases.html

2.解压 tar -xzvf 你的zookeeper

3.mv 到 /usr/zookeeper

4.修改配置文件
拷贝zoo_samle.cfg为zoo.cfg

1. # The number of milliseconds of each tick  
2. tickTime=2000  
3. # The number of ticks that the initial  
4. # synchronization phase can take  
5. initLimit=10  
6. # The number of ticks that can pass between  
7. # sending a request and getting an acknowledgement  
8. syncLimit=5  
9. # the directory where the snapshot is stored.  
10. dataDir=/usr/zookeeper  
11. dataLogDir=/usr/zookeeper/log  
12. # the port at which the clients will connect  
13. clientPort=2181  
14. server.1=localhost:3888  #你的外网ip  

5.设置环境变量
[root@localhost conf]# export ZOOKEEPER_INSTALL=/usr/zookeeper
[root@localhost conf]# export PATH= P A T H : PATH: ZOOKEEPER_INSTALL/bin

6.启动
./zkServer.sh start

猜你喜欢

转载自blog.csdn.net/drdongshiye/article/details/84197972