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

How to install zookeeper

2025-02-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article is to share with you about how to install zookeeper, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Software version-JDK 1.8-Centos 7-zookeeper 3.5.5 installation steps

JDK installation (self-made Baidu)

Install zookeeper

Go to the opt directory to create a zookeeper folder

Cd / optmkdir zookeeper

Download the corresponding zookeeper in the zookeeper directory

Wget https://www-eu.apache.org/dist/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5-bin.tar.gz

Decompression

Tar-zxvf apache-zookeeper-3.5.5-bin.tar.gz

Create data and logs folders in the zookeeper folder

Mkdir datamkdir logs

Go to the conf directory in the extracted file and copy the configuration file

Cp zoo_sample.cfg zoo.cfg

Edit the copied zoo.cfg file

DataDir=/opt/zookeeper/datadataLogDir = / opt/zookeeper/logsserver.1=localhost:2888:3888

Create a myid file in the data folder, insert the number 1, save and exit

Touch myid

Start, go to the bin directory in the file you just extracted, and execute the following command

. / zkServer.sh start

The following screen appears, and the startup is successful

Verify the startup status, as shown below

The above is how to install zookeeper. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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