Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Zookeeper Picture and text installation

Shulou Source: shulou.com Published: 2022-06-03 05:56:16 11月23日 Update

1. Download zookeeper, the version of zookeeper-3.4.5.tar.gz used in this tutorial, decompress it after download, and use the command tar-zxvf zookeeper-3.4.5.tar.gz to complete the decompression.

two。 After the decompression is complete, delete the compressed package

3. Enter the zokkeeper.3.4.5 directory and delete unnecessary files and directories

4. Modify the profile name and add relevant configuration information

5. Copy zookeeper to other nodes, where three machines are prepared for installation of zookeeper, namely node6,node7,node8

6. Create directories and files configured in the configuration file in three nodes, and the contents of the myid in each node need to be consistent with the values configured in the configuration file.

7. Start zookeeper through the. / zkServer.sh start command

8. Check the startup status through the. / zkServer.sh statust command. The status of the node6,node7,node8 is as follows

9. Start zookeeper by script. The script content is as follows

#! / bin/bashfor host in node6 node7 node8doecho "$host is starting...." ssh $host "/ zookeeper-3.4.5/bin/zkServer.sh start" done

Tags: Configuration file command directory node content status script consistent three information name tutorial method machine version preparation picture and text Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno Microsoft Apple Redmi