无法在CentOS 7上启动Zookeeper

问题描述 投票:0回答:1

[当我尝试启动Zookeeper服务器时,出现错误

bash:zkServer.sh:找不到命令...

我已遵循Solr 7.5 documentation中给出的安装说明

并且在zoo.cfg文件中,我添加了以下信息。

tickTime=2000
dataDir=/var/lib/zookeeper
clientPort=2181

initLimit=5
syncLimit=2
server.1=192.168.8.10:2888:3888
server.2=192.168.8.11:2888:3888
server.3=192.168.8.12:2888:3888

autopurge.snapRetainCount=3
autopurge.purgeInterval=1

我具有CentOS 7,并且已经安装了Java版本1.8.0_191,并且通过使用以下内容编辑.bash_profile文件来设置环境变量。

export JAVA_HOME=/opt/jdk1.8.0_191
export PATH=/opt/jdk1.8.0_191/bin:$PATH

我曾尝试过zkServer.sh start命令和zkServer.sh start-foreground这两个命令都不起作用。任何人都可以提出解决此问题的建议。

Zookeeper Start Error

java centos apache-zookeeper solrcloud
1个回答
0
投票

尝试过,它仍然无法启动。

我关注了链接https://blog.redbranch.net/2018/04/19/zookeeper-install-on-centos-7/安装apache-zookeeper

© www.soinside.com 2019 - 2024. All rights reserved.