Zookeeer stand-alone mode installation and startup process

  1. Install JDK
  2. Turn off the firewall
    service iptables stop
    chkconfig iptables off
  3. 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
  4. Unzip
    tar -xvf zookeeper-3.4.8.tar.gz
  5. Enter the subdirectory conf of the Zookeeper installation directory,
    cd zookeeper-3.4.8/conf
  6. Copy
    cp zoo_sample.cfg zoo.cfg
  7. Edit
    vim zoo.cfg to
    modify the dataDir attribute, for example,
    dataDir=/home/software/zookeeper-3.4.8/tmp
  8. Enter Zookeeper's bin directory to start Zookeeper
    cd …/bin
  9. 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
  10. 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.

Guess you like

Origin blog.csdn.net/qq_41536934/article/details/113952224