elasticsearch 优化配置文件
约 79 字
预计阅读 1 分钟
elasticsearch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
cluster.name: bigdata
node.name: els-node1
path.data: /bigdata/zzwl/elasticsearch7/data
path.logs: /bigdata/zzwl/elasticsearch7/log
network.host: bigdata01
http.port: 9200
transport.tcp.port: 9300
transport.tcp.compress: true
discovery.seed_hosts: ["bigdata01:9300", "bigdata02:9300", "bigdata03"]
luster.initial_master_nodes: ["els-node1", "els-node2", "els-node3"]
增加新的参数,这样head插件可以访问es
http.cors.enabled: true
http.cors.allow-origin: "*"
|