弹性搜索启动错误-“ \Common目前是意外的。” [英] Elastic Search startup error - "\Common was unexpected at this time."

查看:89
本文介绍了弹性搜索启动错误-“ \Common目前是意外的。”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载并解压缩了elasticsearch,当我运行批处理文件 elasticsearch.bat时,出现以下错误。

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 this time."

已解决:

通过编辑 bat文件的第46行

By editing line 46 of the 'bat' file

'%JAVA%'==>' JAVA!'

推荐答案

我在运行批处理文件 elasticsearch时也遇到了相同的问题。 Windows 10中的蝙蝠。
我使用以下命令设置了JAVA_HOME,它对我有用。

I also encountered the same issue while running the batch file "elasticsearch.bat" in windows 10. I set JAVA_HOME using below command and it worked for me.

设置 JAVA_HOME = C:\Program Files \Java\your_jdk_version

这篇关于弹性搜索启动错误-“ \Common目前是意外的。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆