- Install JDK
- Turn off the firewall
service iptables stop
chkconfig iptables off - Download Zookeeper-Cloud host can only download
cd /home/software
wget http://bj-yzjd.ufile.cn-north-02.ucloud.cn/zookeeper-3.4.8.tar.gz - Unzip
tar -xvf zookeeper-3.4.8.tar.gz - Enter the subdirectory conf of the Zookeeper installation directory,
cd zookeeper-3.4.8/conf - Copy
cp zoo_sample.cfg zoo.cfg - Edit
vim zoo.cfg to
modify the dataDir attribute, for example,
dataDir=/home/software/zookeeper-3.4.8/tmp - Enter Zookeeper's bin directory to start Zookeeper
cd …/bin - Start Zookeeper
sh zkServer.sh start
*** After starting Zookeeper, a zookeeper.out file is generated, which is the startup log. If Zookeeper fails to start, check if there is any error message in this file - After confirming whether Zookeeper has started successfully
jps, if QuorumPeerMain appears, it means that Zookeeper has been started, but it does not mean that the startup is successful.
sh zkServer.sh status Check the startup status of Zookeeper. In stand-alone mode, standalone should appear.
Zookeeer stand-alone mode installation and startup process
Guess you like
Origin blog.csdn.net/qq_41536934/article/details/113952224
Recommended
Ranking