美文网首页
2022.04.25 Windows 中安装 elastics

2022.04.25 Windows 中安装 elastics

作者: 薛定谔的猴子 | 来源:发表于2022-04-25 15:35 被阅读0次

    一:JDK环境 Java Development Kit(JDK)安装与环境配置 - 简书 (jianshu.com)

    二:下载地址:

    elasticsearch地址:Download Elasticsearch | Elastic

    kibana地址:Download Kibana Free | Get Started Now | Elastic

    三:安装ElasticSearch

    1、解压elasticsearch
    2、进入bin 目录,双击运行elasticsearch.bat

    执⾏完成后:得到“elastic”⽤户的密码并记住它

    3、修改config/elasticsearch.yml
    http.port: 9200
    xpack.security.enabled: true
    xpack.security.enrollment.enabled: true
    xpack.security.http.ssl:
      enabled: false
      keystore.path: certs/http.p12
    xpack.security.transport.ssl:
      enabled: true
      verification_mode: certificate
      keystore.path: certs/transport.p12
      truststore.path: certs/transport.p12
    cluster.initial_master_nodes: ["MSI"]
    http.host: [_local_, _site_]
    
    4、重新启动:.\bin\elasticsearch.bat

    浏览器输入 localhost:9200,就可以登录


    image.png

    三:安装Kibana

    Kibana 是一个 Elastic 公司推出的一个针对 es 的分析以及数据可视化平台 ,可以搜索 、查看存放在es中的数据 。

    1、上述对 kibana-8.1.3-windows-x86_64.zip 已完成解压
    2、回到elasticsearch目录,创建“ kibana_system ”⽤户;命令:
    bin\elasticsearch-reset-password -u kibana_system
    
    3、修改 config/kibana.yml
    server.port: 5601
    server.host: "localhost"
    server.name: "my-kibana"
    elasticsearch.hosts: ["http://localhost:9200"]
    elasticsearch.username: "kibana_system"
    elasticsearch.password: "实际密码"
    i18n.locale: "zh-CN"
    
    4、启动:.\bin\kibana.bat

    浏览器输入 localhost:5601,就可以登录

    相关文章

      网友评论

          本文标题:2022.04.25 Windows 中安装 elastics

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