一段时间后,我放弃了,删除了elasticsearch重新安装并下载了zip文件。然后,我创建了两个新贵职位,到目前为止一切正常。
- 包装纸
description "Start several ES-instances at once (this is a wrapper)."start on (local-filesystems and net-device-up IFACE!=lo)stop on runlevel [06] respawn# Give up respawn if restart occurs 5 times in 120 secondsrespawn limit 5 120env NUM_INSTANCES=4pre-start script for i in $(seq 1 $NUM_INSTANCES) do start elasticsearch-instance ID=$i doneend scriptpre-stop script curl -XPOST "http://localhost:9200/_cluster/nodes/_local/_shutdown"end script
- 执行个体
description "starts up an elasticsearch instance (node)"stop on stopping elasticsearchrespawninstance $IDlimit nofile 64000 64000setuid elasticsearchsetgid elasticsearchenv JAVA_OPTS="-XX:+UseCompressedOops"env ES_HEAP_SIZE=28Gexec /data/elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch/config/elasticsearch.yml
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)