1.报错截图
[root@cluster1 bin]# ./zkServer.sh start-foreground
ZooKeeper JMX enabled by default
Using config: /etc/zookeeper/server1/zookeeper-3.4.8/bin/../conf/zoo.cfg
./zkServer.sh: line 170: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-3.b16.el6_9.x86_64/bin/java: 没有那个文件或目录
./zkServer.sh: line 170: exec: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-3.b16.el6_9.x86_64/bin/java: cannot execute:
2解决方法
conf下修改vi zkEnv.sh java的路径 原来的路径JAVA="$JAVA_HOME/bin/java" 修改后的路径JAVA="$JAVA_HOME/jre/bin/java"
来源:CSDN
作者:qq_19523309
链接:https://blog.csdn.net/qq_19523309/article/details/77887578