# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /home/elasticsearch/lib
#
# Path to log files:
#
path.logs: /home/elasticsearch/logq
# 单节点启动,可选
etwork.host: 0.0.0.0
node.name: node-1
cluster.initial_master_nodes: ["node-1"]
# JDK 9+ GC logging
9-:Xlog:gc*,gc+age=trace,safepoint:file=/home/elasticsearch/log/gc.log:utctime,pid,tags:filecount=32,filesize=64m
useradd -s /sbin/nologin elasticsearch
export ES_JAVA_HOME=/usr/share/elasticsearch/jdk
su -s /bin/bash -m -c "source /home/elasticsearch/.bashrc && /usr/share/elasticsearch/bin/elasticsearch -d" elasticsearch