future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题
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文件,修改里面的内容
2.修改文件名字,才能打开文件
3.以记事本打开为例
4.找到文件中信息相对应的内容,内容全部修改,注意标记的小红框里的内容,和绿色框里的内容,与你安装ES的路径保持一致
5.修改之后,点击文件,点击保存
6.把文件名字修改回原来的!!!!!
7.config下jvm.options文件
8.修改文件内容,都改为256,改完记得保存文件
9.重新双击elasticsearch.bat或者dos窗口运行
10.正常运行
转载请注明:future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题 | 胖虎的工具箱-编程导航