好的想法是十分钱一打,真正无价的是能够实现这些想法的人。

源码编译参数指定是用 -D还是-E

Elasticsearch | 作者 caster_QL | 发布于2022年04月26日 | 阅读数:1314

求教现在用IDEA编译ES源码参数指定使用-D还是-E额,
使用-D会报错:ERROR: D is not a recognized option
使用-E指定没有生效额,貌似不识别

1.png


2.png

 
已邀请:

Ombres

赞同来自: caster_QL spoofer

第一个截图是es的程序参数
比如常用的-d 后台启动
 
下面是 jvm options ,格式是固定的
-Des.path.home=D:\elasticsearch-7.11.2
-Des.path.conf=D:\elasticsearch-7.11.2\config
-Dlog4j2.disable.jmx=true
 
感觉得是你的参数写错位置了
 
 
 

rockybean - Elastic Certified Engineer, ElasticStack Fans,公众号:ElasticTalk

赞同来自: caster_QL

用环境变量
ES_PATH_CONF=/path/to/conf/dir ES_PATH_DATA=/path/to/data/dir bin/elasticsearch

要回复问题请先登录注册