es 运行elasticsearch.bat 报错:Use jvm.options or ES_JAVA_OPTS to configure the JVM
Elasticsearch | 作者 1033154134 | 发布于2017年09月24日 | 阅读数:7744
windows下安装了jdk,jre后,
运行/bin/elasticsearch.bat报错::
Error: encountered environment variables that are no longer supported
Use jvm.options or ES_JAVA_OPTS to configure the JVM
ES_HEAP_SIZE=-Xms-Xmx2g -Xms2g -Xmx-Xmx2g -Xms2g: set -Xms-Xms-Xmx2g -Xms2g -Xmx
-Xmx2g -Xms2g and -Xmx-Xms-Xmx2g -Xms2g -Xmx-Xmx2g -Xms2g in jvm.options or add
"-Xms-Xms-Xmx2g -Xms2g -Xmx-Xmx2g -Xms2g -Xmx-Xms-Xmx2g -Xms2g -Xmx-Xmx2g -Xms2g
" to ES_JAVA_OPTS
根据官网的已在config/jvm.options添加了【如图】
-Xms2g
-Xmx2g
关闭了cmd命令重新运行还是同样的报错
运行/bin/elasticsearch.bat报错::
Error: encountered environment variables that are no longer supported
Use jvm.options or ES_JAVA_OPTS to configure the JVM
ES_HEAP_SIZE=-Xms-Xmx2g -Xms2g -Xmx-Xmx2g -Xms2g: set -Xms-Xms-Xmx2g -Xms2g -Xmx
-Xmx2g -Xms2g and -Xmx-Xms-Xmx2g -Xms2g -Xmx-Xmx2g -Xms2g in jvm.options or add
"-Xms-Xms-Xmx2g -Xms2g -Xmx-Xmx2g -Xms2g -Xmx-Xms-Xmx2g -Xms2g -Xmx-Xmx2g -Xms2g
" to ES_JAVA_OPTS
根据官网的已在config/jvm.options添加了【如图】
-Xms2g
-Xmx2g
关闭了cmd命令重新运行还是同样的报错
3 个回复
1033154134
赞同来自:
hufuman
赞同来自:
lj869494678
赞同来自: