ES安装文档

2022-06-13  本文已影响0人  Cary_Sun

ES安装文档

a、安装前准备步骤

b、elasticsearch配置

script.inline: true
cluster.name: elasticsearch-dev5.4
node.name: warm-192.168.31.173
node.master: true
node.data: true
path.data: /data02/elasticsearch_warm/elasticsearch-5.4.3/data
path.logs: /data02/elasticsearch_warm/elasticsearch-5.4.3/logs
network.host: 192.168.31.173
bootstrap.memory_lock: true
discovery.zen.minimum_master_nodes: 1
discovery.zen.ping.unicast.hosts: ["192.168.31.173:9300","192.168.31.174:9300","192.168.31.175:9300","192.168.31.173:9301","192.168.31.174:9301","192.168.31.175:9301"]
http.cors.enabled : true
http.cors.allow-origin : "*"
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length, kbn-version
indices.fielddata.cache.size: 20%
indices.breaker.fielddata.limit: 30%
indices.breaker.request.limit: 40%
indices.breaker.total.limit: 50%
http.port: 9200
transport.tcp.port: 9300
##冷热数据配置,不需要可以推掉
node.attr.box_type: warm

注:

1、配置文件中,datadir填写的路径,要存储大量的数据,因而路径指定的磁盘空间需大些。

2、配置冷热盘必须要有,如果修改冷盘需要重启elasticsearch。

c、启动elasticsearch

./bin/elasticsearch –d

d、检验是否安装成功

e、常用维护命令

f、常见问题

g、卸载

rm -rf /data02/elasticsearch_warm/elasticsearch-5.4.3/data
rm -rf /data02/elasticsearch_warm/elasticsearch-5.4.3/logs
上一篇 下一篇

猜你喜欢

热点阅读