In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What this article shares to you is the detailed tutorial of installing and configuring Zookeeper in Linux. I believe most people do not know how to install it. In order to let you learn, I have summarized the following contents. Without saying much, let's read on.
Precondition
JDK.yum must be installed to install JDK
Zookeeper download
Download zookeeper official source
Version
Zookeeper-3.4.14
Download zookeeper// use wget download wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz// if there is no wget, you can install / / yum install-y wget// with yum if you do not want to install the wget tool Then you can use rz to upload and extract the zookeeper package from the server # extract all the files under the current directory tar-zxvf zookeeper-3.4.14.tar.gz# copy zookeeper-3.4.14 to the specified directory cp zookeeper-3.4.14 / usr/local/zookeeper-r
Configure zookeepercd / usr/local/zookeeper/# configuration zoo.cfg file cd conf# from template creation configuration file cp zoo_sample.cfg zoo.cfg# edit zoo.cfgvim zoo.cfg# modify content dataDir=/tmp/zookeeper/datadataLogDir=/tmp/zookeeper/log creation data, Log directory mkdir-p / tmp/zookeeper/data / tmp/zookeeper/log configure environment variable vim / etc/profile# add the following content export ZOOKEEPER=/usr/local/zookeeperexport PATH=$PATH:$ZOOKEEPER/bin# effective immediately source / etc/profile start zookeeper# start command If the global variable is not configured, you need to add a path, because the above configuration does not require the zkServer.sh start# zookeeper service status zkServer.sh status
These are the detailed tutorials for installing and configuring Zookeeper in Linux. Have you learned anything after reading them? If you want to know more about it, you are welcome to follow the industry information!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.