问题:
执行 bin/zkServer.sh 时,遇到JAVA_HOME is not set and java could not be found in PATH.的问题
解决:
Java alternatives
现在使用下面的命令将Java的位置给 LinuxOS
# update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_60/bin/java 100
或者
# update-alternatives — install “/usr/bin/java” “java” “
# update-alternatives — install “/usr/bin/javac” “javac” “
# update-alternatives — install “/usr/bin/javaws” “javaws” “