elastic-search.md

Install

  • 配置公网访问
    1
    2
    修改配置文件 config/elasticsearch.yml
    network.host: 0.0.0.0
  • 扩大vm.max_map_count
    1
    sysctl -w vm.max_map_count=655360
  • node 安装
    1
    2
    http.cors.enabled: true
    http.cors.allow-origin: "*"
  • kibana install
    1
    2
    kibana安装后外网无法访问:
    修改config/kibaba.yml下的server.host为0.0.0.0
  • cluster config
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    cluster.name: xxx-search

    node.name: node-2
    node.master: false
    node.data: true

    network.host: 0.0.0.0

    http.cors.enabled: true
    http.cors.allow-origin: "*"

    discovery.zen.ping.unicast.hosts: ["xxx.xxx.xxx.xxx"]