1. 下载地址:
    # elasticsearch 7.10 下载地址
    https://www.elastic.co/guide/en/elasticsearch/reference/7.10/targz.html
    # kibana 7.10 下载地址
    https://artifacts.elastic.co/downloads/kibana/kibana-7.10.0-linux-x86_64.tar.gz
  2. 源码安装 elasticsearch(直接解压):
  3. 源码安装 kibana(直接解压):
  4. 配置 elasticsearch:
    vim /path/to/elasticsearch/config/elasticsearch.yml
    cluster.name: app
    node.name: master
    network.host: 192.168.1.13
    http.port: 9200
    discovery.seed_hosts: ["192.168.1.13", "192.168.1.14"]
    cluster.initial_master_nodes: ["master", "slave"]
    node.master: true
    node.data: true
    http.cors.enabled: true
    http.cors.allow-origin: "*"
    ######## begin: 用户名/密码 配置 ########
    http.cors.allow-headers: Authorization
    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true
    ######## end: 用户名/密码 配置 ########
    discovery.zen.minimum_master_nodes: 2
    path.data: /path/to/elasticsearch/data
    path.logs: /path/to/elasticsearch/logs
  5. 配置 kibana:
    vim /path/to/kibana/config/kibana.yml
    server.port: 5601
    server.host: "192.168.1.13"
    elasticsearch.hosts: ["http://192.168.1.13:9200"]
    elasticsearch.username: "elastic"
    elasticsearch.password: "admin123"
  6. 设置 elasticsearch 用户名/密码:
    /path/to/elasticsearch/bin/elasticsearch-setup-passwords interactive
  7. 启动 elasticsearch(非 root 用户):
    # 前台启动
    /path/to/elasticsearch/bin/elasticsearch
    # 后台启动
    /path/to/elasticsearch/bin/elasticsearch -d
  8. 启动 kibana(非 root 用户):
    /path/to/kibana/bin/kibana
  9. elasticsearch 连接地址:
    ip地址:9200
  10. kibana 访问地址:
    ip地址:5601
文档更新时间: 2021-11-26 10:59   作者:lee