13

zookeeper 3.7.0 cmd windows下配置及启动后闪退处理

 3 years ago
source link: http://www.hechunbo.com/index.php/archives/389.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

zookeeper 3.7.0 cmd启动后闪退

  1. 下载 2021.06.30 最新版为3.7.0

    https://mirrors.bfsu.edu.cn/apache/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz
    
    

conf目录中,复制一个zoo_sample.cfg为zoo.cfg

更改zoo.cfg中的内容 。

在目录中添加 data,log目录 ,然扣分别在zoo.cfg中配置

dataDir=D:\codeEnv\apache-zookeeper-3.7.0-bin\apache-zookeeper-3.7.0-bin\data
dataLogDir=D:\codeEnv\apache-zookeeper-3.7.0-bin\apache-zookeeper-3.7.0-bin\log

3.启动。

双击zkServer.cmd

如果发现有闪退的情况 在zkServer.cmd的最后一行添加pause,

如果出现的错误 是

Unable to start AdminServer,existing abnormally

则一般是因为8080端口被占用。

停掉机器的8080,重新启动就可以了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK