[Linux] zookeeper-3.5.6 to install the latest version of the Raiders, and installation summary

The first step Download: https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.5.6/  browser to open this address we need to download the installation package

 

 

apache-zookeeper-3.5.6.tar.gz

Or run

# wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.5.6/apache-zookeeper-3.5.6.tar.gz

The second step extracting installer

Tar zxvf #  apache-zookeeper-356targz

The modified file is unpacked folder name zookeeper

# mv apache-zookeeper-3.5.6 zookeeper

# cd zookeeper

# Cd conf

Copy the configuration file and change the name to zoo.cfg

# mv zoo_sample.cfg zoo.cfg

# bin/zkServer.sh

 

 

 Failed to start what is the problem? After some Baidu found;

The latest version 3.5.5 began, bin inside the package with the name of what we want to download directly using binary packages are compiled, while the average of the previous tar.gz package which is only source package can not be used directly.

Under really want to Tucao ah, Zookeeper change the package, source package can not add a logo src do the same to other installation package? See the name to know how well intended, to avoid false download.

So students, if after downloading the 3.5.5 version of the installation package Zookeeper, we obediently download package with a bin identification would be no problem.

Well, we download and install: wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.5.6/apache-zookeeper-3.5.6-bin.tar.gz

Repeat the above steps Run

# bin/zkServer.sh 

 

 What the hell, how they failed, do not worry, view the log file found, the port number 8080 is occupied,

View the official document found this to be a zookeeper new features

 

 This is Zookeeper AdminServer, the default port 8080, its configuration attributes are as follows:

 

 

One solution is we can modify those AdminServer in zoo.cfg port:

 

 admin.serverPort=8888

Save it, and then try to restart.

 

 So far, our version of the latest version 3.5.6 zookeeper has been installed successfully.

There are other ways to solve the case of the port is occupied by another check my blog [Linux] zookeeper-3.5.6 failed to start 8080 port is occupied

 

 

Guess you like

Origin www.cnblogs.com/itworkers/p/11697513.html