美文网首页
Elasticsearch集群环境搭建

Elasticsearch集群环境搭建

作者: 奋斗的韭菜汪 | 来源:发表于2020-10-14 00:01 被阅读0次

官方下载地址:https://www.elastic.co/cn/downloads/
版本:
Elasticsearch:7.8.1
Kibana:7.8.1
Chrome插件(非官方):elasticsearch-head(插件安装教程:https://www.cnblogs.com/wzx1blog/p/13066693.html

安装方式:离线包.(不建议使用dock,映射比较麻烦)
系统环境配置:
1、关闭防火墙 :service firewalld stop(关闭防火墙)
chkconfig firewalld off(系统重启不重启防火墙)
elasticsearch.yml配置:

cluster.name: myes01
node.name: myes-192.168.56.128-9200
network.host: 192.168.56.128
http.port: 9200
transport.port: 9300
discovery.seed_hosts: ["192.168.56.128:9300","192.168.56.129:9300","192.168.56.130:9300"]
 discovery.seed_hosts: ["192.168.56.128:9300","192.168.56.129:9300","192.168.56.130:9300"]

kibana.yml配置:

server.port: 6601
server.host: "0.0.0.0"
elasticsearch.hosts: ["http://192.168.56.128:9200", "http://192.168.56.130:9200"]
kibana.index: ".kibanas"

注es重启要先清空logs下文件,删除config中elasticsearch.keystore文件


image.png
image.png

相关文章

网友评论

      本文标题:Elasticsearch集群环境搭建

      本文链接:https://www.haomeiwen.com/subject/zdrauktx.html