之前本地有7.13版本的 以为是版本不对应来着 后来吧版本7.13全删了还有这个问题
future versions of Elasticsearch will require Java 11; your Java version from [C
2 :Program FilesJavajdk1.8.0_181jre] does not meet this requirement
3 Warning: with JDK 8 on Windows, Elasticsearch may be unable to derive correct
4 ergonomic settings due to a JDK issue (JDK-8074459). Please use a newer
5 version of Java.
6 Warning: MaxDirectMemorySize may have been miscalculated due to JDK-8074459.
7 Please use a newer version of Java or set MaxDirectMemorySize explicitly.
以上为windows下的示例。
这种情况一般是由于启用的高版本的Elasticsearch(版本7.x.x),这种情况,一般不影响Elasticsearch的启动,可以继续使用。
但有洁癖怎么办?
装jdk 11
按提示显示开启属性MaxDirectMemorySize
ES的bat脚本中写到运行属性的读取:
rem The JVM options parser produces the final JVM options to start
rem Elasticsearch. It does this by incorporating JVM options in the following
rem way:
rem - first, system JVM options are applied (these are hardcoded options in
rem the parser)
rem - second, JVM options are read from jvm.options and
rem jvm.options.d/*.options
rem - third, JVM options from ES_JAVA_OPTS are applied
rem - fourth, ergonomic JVM options are applied
起来啦