Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Zookeeper3.4.14 cluster building

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Download release:wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz to extract tar-zxvf zookeeper-3.4.14.tar.gz into the decompressed directory, copy the zoo_sample.cfg:cp zoo_sample.cfg zoo.cfg in the conf directory to modify the zoo.cfg file: vim zoo.cfg, modify dataDir=/var/zookeeper / / this directory can be customized, add

Server.1=10.99.32.3:2888:3888

Server.2=10.99.32.31:2888:3888

Server.3=10.99.32.9:2888:3888 creates a directory / var/zookeeper, and adds a myid file, which according to its node serial number is 1pm 2pm 3.

Echo "1" > / var/zookeeper/myid starts separately on each node: bin/zkServer.sh start, if prompted that there is no java command to install java:yum install java-y, there is a zookeeper.out log file in the current directory, you can view the error content and use bin/zkServer.sh status to check the status of the current server, follower and leader

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report