赞
踩
https://www.elastic.co/cn/downloads/past-releases/elasticsearch-7-7-0
rpm --install elasticsearch-7.7.0-x86_64.rpm
systemctl daemon-reload
systemctl enable elasticsearch.service
cluster.name: sjzy-es
node.name: node18
path.data: /bigdata/es/data1,/bigdata/es/data2,/bigdata/es/data3,/bigdata/es/data4,/bigdata/es/data5,/bigdata/es/data
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
discovery.seed_hosts: [“node18”,“node19”,“node20”,“node21”,“node22”,“node23”,“node24”,“node2
5”,“node26”,“node27”,“node28”,“node29”]
cluster.initial_master_nodes: [“node18”, “node19”, “node20”]
根据实际情况设置内存
-Xms64g
-Xmx64g
否则报错内存锁定
[Service]下添加
LimitMEMLOCK=infinity
chmod -R 777 /bigdata/es
http.cors.enabled: true
http.cors.allow-origin: “*”
systemctl start elasticsearch.service
(1)下载对应版本IK
https://github.com/medcl/elasticsearch-analysis-ik
(2)到指定目下解压为ik目录
cd /usr/share/elasticsearch/plugins
unzip -d ik elasticsearch-analysis-ik-7.7.0.zip
(3)重启es
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。