Elastic Search startup error - “\Common was unexpected at this time.”

后端 未结 6 1952
谎友^
谎友^ 2021-01-31 08:37

I have downloaded and extracted elasticsearch and when I run the batch file \"elasticsearch.bat\' I am getting the following error.

\"\\Common was unexpected at         


        
6条回答
  •  渐次进展
    2021-01-31 08:57

    I placed SET "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191" just under SET params='%*' inside "bin\elasticsearch.bat" and that made it work

    @echo off
    
    setlocal enabledelayedexpansion
    setlocal enableextensions
    
    SET params='%*'
    SET "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191"
    
    :loop
    ......
    

提交回复
热议问题