zoukankan      html  css  js  c++  java
  • Elasticsearch7 集群配置文件(解决elasticsearch head无法连接elasticsearch问题)

    1.主节点配置文件

    [root@es_master ~]# cat  /home/wx/elasticsearch-7.9.0/config/elasticsearch.yml
    cluster.name: ELK-Cluster
    node.name: elk-node1
    # 开启跨域访问支持,默认为false(不开启elasticsearch head插件无法链接elasticsearch)
    http.cors.enabled: true
    # 跨域访问允许的域名地址(不开启elasticsearch head插件无法链接elasticsearch)
    http.cors.allow-origin: "*"
    # 通过为 cluster.initial_master_nodes 参数设置符合主节点条件的节点的 IP 地址来引导启动集群
    cluster.initial_master_nodes: ["elk-node1"]
    path.data: /home/wx/elasticsearch-7.9.0/data
    path.logs: /home/wx/elasticsearch-7.9.0/logs
    bootstrap.memory_lock: true
    network.host: 0.0.0.0
    http.port: 9200
    discovery.zen.ping.unicast.hosts: ["192.168.56.30","192.168.56.31"]

    2.从节点配置文件

    [root@ex_node ~]# cat  /home/wx/elasticsearch-7.9.0/config/elasticsearch.yml
    cluster.name: ELK-Cluster
    node.name: elk-node2
    cluster.initial_master_nodes: ["elk-node1"]
    path.data: /home/wx/elasticsearch-7.9.0/data
    path.logs: /home/wx/elasticsearch-7.9.0/logs
    bootstrap.memory_lock: true
    network.host: 0.0.0.0
    http.port: 9200
    discovery.zen.ping.unicast.hosts: ["192.168.56.30","192.168.56.31"]
  • 相关阅读:
    MAC 上找不到.bash_profile或者ect/profile该怎么办?
    iOS极光推送集成步骤
    排序算法
    iOS之内存管理浅谈
    iOS之多线程浅谈
    iOS之RunTime浅谈
    Hash算法初见
    webApi实现增删改查操作
    Python: sqlite3模块
    python3:iterable, iterator, generator,抽象基类, itertools的使用。
  • 原文地址:https://www.cnblogs.com/faithH/p/13535231.html
Copyright © 2011-2022 走看看