Files
elasticsearch/docs/配置/01.配置简介.md
2022-12-01 18:05:53 +08:00

38 lines
626 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 概述
Elasticsearch 有一个很好的默认配置所以仅需要很小的配置。很多设置都可以通过集群API来控制。
配置文件中有很多节点专用配置,比如 (`node.name` 和路径)
配置文件格式
```yaml
path:
data: /var/lib/elasticsearch
logs: /var/log/elasticsearch
```
```yaml
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
```
```yaml
discovery.seed_hosts:
- 192.168.1.10:9300
- 192.168.1.11
- seeds.mydomain.com
```
环境变量
```
node.name: ${HOSTNAME}
network.host: ${ES_NETWORK_HOST}
```