• 启动zookeeper报错:JAVA_HOME is not set


    启动zookeeper时报错JAVA_HOME is not set

    看了环境变量,确实配置好了,但是zookeeper竟然没找到

    修改bin目录下的zkEnv.cmd关于jdk的一部分

    set JAVA_HOME="D:Program FilesJavajdk1.7.0_75"
    
    if not defined JAVA_HOME (
      echo Error: JAVA_HOME is not set.
      goto :eof
    )
    
    if not exist %JAVA_HOME%injava.exe (
      echo Error: JAVA_HOME is incorrectly set.
      goto :eof
    )
    
    set JAVA=%JAVA_HOME%injava
  • 相关阅读:
    SHELL[22]
    SHELL[15]
    SHELL[08]
    SHELL[12]
    SHELL[06]
    SHELL[24]
    SHELL[11]
    shell文件合并、去重
    SHELL[25]
    SHELL[14]
  • 原文地址:https://www.cnblogs.com/aqsunkai/p/6690608.html
Copyright © 2020-2023  润新知