linux环境确认JAVA_HOME变量已经设置 

./zkServer.sh 启动 zookeeper 报错 JAVA_HOME is not set and java could not be found in PATH

最后在zkEnv.sh中强制加上JAVA_HOME环境变量解决

 

步骤:

  1.zookeeper bin 目录vim  zkEnv.sh 在下图位置增加JAVA环境变量

   [Linux] Zookeeper启动报错 JAVA_HOME is not set and java could not be found in PATH

  2.再次启动zookeeper成功

   [Linux] Zookeeper启动报错 JAVA_HOME is not set and java could not be found in PATH

  

  

相关文章:

  • 2021-07-04
  • 2021-06-03
  • 2022-12-23
  • 2021-04-12
  • 2022-12-23
  • 2022-03-07
猜你喜欢
  • 2021-12-13
  • 2022-01-01
  • 2021-09-10
  • 2022-12-23
  • 2021-09-18
相关资源
相似解决方案