future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

2年前 (2022) 程序员胖胖胖虎阿
200 0 0

future versions of Elasticsearch will require Java 11; your Java version from [D:\elasticsearch-7.6.2-windows-x86_64\elasticsearch-7.6.2\jdk] does not meet this requirement
Warning: with JDK 8 on Windows, Elasticsearch may be unable to derive correct
  ergonomic settings due to a JDK issue (JDK-8074459). Please use a newer
  version of Java.
Warning: MaxDirectMemorySize may have been miscalculated due to JDK-8074459.
  Please use a newer version of Java or set MaxDirectMemorySize explicitly.

报错:Elasticsearch和当前的jdk1.8不兼容,要求将jdk升级到11版本的

解决方法:

1.找到ES,bin目录下的elasticsearch-env.bat文件,修改里面的内容

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

2.修改文件名字,才能打开文件

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

3.以记事本打开为例

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

4.找到文件中信息相对应的内容,内容全部修改,注意标记的小红框里的内容,和绿色框里的内容,与你安装ES的路径保持一致

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

 5.修改之后,点击文件,点击保存

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

6.把文件名字修改回原来的!!!!!

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

 7.config下jvm.options文件

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

8.修改文件内容,都改为256,改完记得保存文件

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

 9.重新双击elasticsearch.bat或者dos窗口运行

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

 10.正常运行

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

 

 

 

相关文章

暂无评论

暂无评论...