[Linux] zookeeper-3.5.6 installation Raiders and issue summary

The first step Download: https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.5.6/ 

 

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-3.5.6.tar.gz

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

 Start reasons for failure:

        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.

     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 

View the log file found, the port number 8080 is occupied, (log locations: in the installation directory logs folder inside)

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

 

 这是Zookeeper AdminServer,默认使用8080端口,它的配置属性如下:

 

一种解决办法是我们可以修改在zoo.cfg中修改AdminServer的端口:

 

 admin.serverPort=8888

保存一下,再重启试试。

 

 到此为止,我们的最新版的3.5.6版的zookeeper就已经安装成功了。

还有其他的办法解决端口被占用的情况 请查看我的另外一个博客【Linux】zookeeper-3.5.6启动失败8080端口被占用

发布了100 篇原创文章 · 获赞 47 · 访问量 21万+

Guess you like

Origin blog.csdn.net/sl1990129/article/details/104425269