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 Linux installs and configures zokeeper

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article will explain in detail how to install and configure zokeeper for Linux. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Download zokeeper and upload it to / usr/local/tmp

Enter the tmp directory

Cd / usr/local/tmp

View the files under the tmp folder

Ls

Extract the zookeeper-3.4.8.tar.gz file

Tar zxvf zookeeper-3.4.8.tar.gz

View the folder of the current directory

Ls

Copy a copy of zookeeper-3.4.8 to the next level directory

Cp-r zookeeper-3.4.8.. / zookeeper

Enter the zookeeper directory of your superiors

Cd.. / zookeeper/

View the folder of the current directory

Ls

Create a data folder in the current directory

Mkdir data

Enter the conf file

Cd conf

View the folder of the current directory

Ls

Copy zoo_sample.cfg to zoo.cfg

Cp zoo_sample.cfg zoo.cfg

Enter vim zoo.cfg and press I key to edit

DataDir=/usr/local/zookeeper/data

Press ESC to exit editing: wq save and exit

Release port 2181

Vim / etc/sysconfig/iptables

Press the I key to edit

-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 2181-j ACCEPT

Esc key for exit editing: wq save and exit

Set the port to take effect

Service iptables restart www.gendan5.com

Return to the parent directory

Cd..

View the folders in the current directory

Ls

Enter the bin directory

Cd bin

View the folders in the current directory

Ls

Start zookeeper

. / zkServer.sh start

. / zkServer.sh status

The appearance of Mode: standalone proves that the startup is successful!

To facilitate management, the administrative interface is required to install dubbo-admin

On how to install and configure Linux zokeeper is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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

Servers

Wechat

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

12
Report