调试 elastic

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
萌森 2024-07-23 12:38:40 +08:00
parent efad6b6c81
commit feca8c24f7
2 changed files with 17 additions and 6 deletions

View File

@ -4,6 +4,17 @@ http.host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: "*"
network.host: 0.0.0.0
path:
data: /usr/share/elasticsearch/data
logs: /usr/share/elasticsearch/logs
gateway.recover_after_nodes: 1
cluster.name: ${CLUSTER_NAME}
node.name: ${ES_SETTING_NODE_NAME}
node.master: true
node.ingest: true
node.data: true
#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
#
# The following settings, TLS certificates, and keys have been automatically

View File

@ -8,13 +8,13 @@ if [ -f .env ]; then
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
mkdir -p $ELASTICSEARCH_ROOT_PATH
mkdir -p $ELASTICSEARCH_DATA_PATH/certs
mkdir -p $ELASTICSEARCH_DATA_PATH/data
mkdir -p $ELASTICSEARCH_DATA_PATH/logs
mkdir -p $ELASTICSEARCH_DATA_PATH/plugins
mkdir -p "$ELASTICSEARCH_ROOT_PATH"
mkdir -p "$ELASTICSEARCH_DATA_PATH/certs"
mkdir -p "$ELASTICSEARCH_DATA_PATH/data"
mkdir -p "$ELASTICSEARCH_DATA_PATH/logs"
mkdir -p "$ELASTICSEARCH_DATA_PATH/plugins"
chown -R 1000:0 $ELASTICSEARCH_ROOT_PATH
chown -R 1000:0 "$ELASTICSEARCH_ROOT_PATH"
echo "Check Finish."