Elasticsearch集群搭建

==作者:YB-Chi==

[toc]

搭建集群model

准备一台虚机

centos6.7
免密码登陆
yum源
静态IP
/etc/hosts配置
/etc/sysconfig/network配置
jdk&环境变量

解压elasticsearch到/usr/local下

配置elasticsearch.yml(注意要顶格写,冒号后面要加一个空格)

a)  Cluster.name: elasticsearch_chi  (同一集群要一样)
b)  Node.name: node-1  (同一集群要不一样)
c)  Network.Host: 192.168.15.11
d)  discovery.zen.ping.multicast.enabled: false
    discovery.zen.ping.timeout: 120s
    client.transport.ping.timeout: 60s
    discovery.zen.ping.unicast.hosts: ["192.168.15.11","192.168.15.12", "192.168.15.13"]

开始clone两台虚机 clone过后改ip方法见我笔记

head插件

插件安装方法1:

1.elasticsearch/bin/plugin -install mobz/elasticsearch-head
2.运行es
3.打开http://localhost:9200/_plugin/head/

插件安装方法2:

1.https://github.com/mobz/elasticsearch-head下载zip 
    解到压elasticsearch-1.0.0\plugins\  并重命名为head
2.运行es
3.打开http://localhost:9200/_plugin/head/
文章作者: CYBSKY
文章链接: https://cybsky.top/2022/09/07/cyb-mds/bigdata/ES/Elasticsearch集群搭建/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 CYBSKY