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