Zookeeper 3.5.6 启动问题

Zookeeper 3.5.6 start issue

在 Win10 上使用 Zookeeper 3.5.6-bin,java8

PATH= ;%ZOOKEEPER_HOME%\bin;  
ZOOKEEPER_HOME=C:\apps\Apache\apache-zookeeper-3.5.6-bin  
dataDir=C:\appas\apache\apache-zookeeper-3.5.6-bin\data

我从 zkServer start

开始

错误:

[main:ZooKeeperServerMain@66] - Invalid arguments, exiting abnormally  
java.lang.NumberFormatException: For input string: "C:\apps\apache\apache-zookeeper-3.5.6-bin\bin\..\conf\zoo.cfg" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82)

2020-01-28 15:29:12,618 [myid:] - INFO  [main:ZooKeeperServerMain@67] - Usage: ZooKeeperServerMain configfile | port datadir [ticktime] [maxcnxns]  
Usage: ZooKeeperServerMain configfile | port datadir [ticktime] [maxcnxns]  

ZOOKEEPER_HOME 等似乎正确?

Update/Resolution
zkServer [start] - 是一种记录在案的合法开始方式 - 但这会产生错误 - 无法弄清楚原因。所以只是 zkServer 开始。
管理服务器的端口 8080 冲突:您可以终止此端口上的现有进程(需要一些操作)。或者您可以在不同的端口上启动管理(甚至完全禁用管理服务器)。这在文档中没有明确记录 -

在共同努力下,解决方案是 运行 它没有 start,只是

> zkServer

..并确保在端口 8080 上没有其他任何东西 运行ning 以便 AdminServer 能够启动,避免这种情况:

Unable to start AdminServer, exiting abnormally
org.apache.zookeeper.server.admin.AdminServer$AdminServerException:
  Problem starting AdminServer on address 0.0.0.0, port 8080 and command URL /commands.
  Caused by: java.io.IOException: Failed to bind to /0.0.0.0:8080
  Caused by: java.net.BindException: Address already in use: bind.