问题描述
在 windows 上安装了 zookeeper 3.5.6 bin.获取错误:无法启动AdminServer,异常退出org.apache.zookeeper.server.admin.AdminServer$AdminServerException:在地址 0.0.0.0、端口 8080 和命令 URL/commands
Installed zookeeper 3.5.6 bin on windows. Getting error:Unable to start AdminServer, exiting abnormallyorg.apache.zookeeper.server.admin.AdminServer$AdminServerException: Problem starting AdminServer on address 0.0.0.0, port 8080 and command URL /commands
我在哪里可以找到 AdminServer 配置属性来解决这个问题.在我的 conf 目录中 .cfg 没有任何东西,而且我在其他任何地方也找不到任何东西??文档指的是zookeeper.admin.serverPort属性等
Where do I find the AdminServer configuration properties to fix this. In my conf directory the .cfg does not have anything, and I cant find anything anywhere else either?? The documentation is referring to zookeeper.admin.serverPort properties etc.
推荐答案
默认情况下,Admin Server 绑定到端口 8080,如果端口 8080 已被使用,将抛出此异常.
By default, Admin Server binds to port 8080, in case port 8080 already in use this exception will be thrown.
将以下属性添加到 conf/zoo.cfg
文件并重新启动 zk 服务器.admin.serverPort=9876
(8080 以外的端口)
Add below property to conf/zoo.cfg
file and restart zk server.admin.serverPort=9876
(other port than 8080)
或者您可以通过
完全禁用管理服务器admin.enableServer=false
这篇关于Zookeeper 管理服务器端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!