• Elasticsearch8.4.3单机版安装


    elasticsearch下载地址:https://www.elastic.co/cn/downloads/past-releases#elasticsearch
    因为elasticsearch是java开发的,所以依赖jdk,elasticsearch7.x及之前的版本使用jdk8,elasticsearch7.x之后的版本都自带jdk,无需安装。

    1、安装elasticsearch

     rpm -i elasticsearch-8.4.3-x86_64.rpm 
    
    • 1

    安装后打印日志如下

    警告:elasticsearch-8.4.3-x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID d88e42b4: NOKEY
    Creating elasticsearch group... OK
    Creating elasticsearch user... OK
    --------------------------- Security autoconfiguration information ------------------------------
    
    Authentication and authorization are enabled.
    TLS for the transport and HTTP layers is enabled and configured.
    
    The generated password for the elastic built-in superuser is : idyUB6RlAvsWDs=Mx98E
    
    If this node should join an existing cluster, you can reconfigure this with
    '/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token '
    after creating an enrollment token on your existing cluster.
    
    You can complete the following actions at any time:
    
    Reset the password of the elastic built-in superuser with 
    '/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic'.
    
    Generate an enrollment token for Kibana instances with 
     '/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana'.
    
    Generate an enrollment token for Elasticsearch nodes with 
    '/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node'.
    
    -------------------------------------------------------------------------------------------------
    ### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd
     sudo systemctl daemon-reload
     sudo systemctl enable elasticsearch.service
    ### You can start elasticsearch service by executing
     sudo systemctl start elasticsearch.service
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31

    为什么要把日志列出来往下看

    2、启动elasticsearch

    systemctl start elasticsearch.service  #启动elasticsearch
    systemctl stop elasticsearch.service   #停止elasticsearch
    
    • 1
    • 2

    3、关闭防火墙,访问elasticsearch

    https://192.168.236.129:9200/
    需要登陆的账号密码,在哪?
    回头看打印日志

    The generated password for the elastic built-in superuser is : idyUB6RlAvsWDs=Mx98E
    
    • 1

    密码就在最后,但是密码太长记不住,换个密码怎么处理?
    看日志

    /usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic   #由系统重置密码
    /usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic -i #手工指定elastic的新密码
    
    • 1
    • 2

    再次登陆输入账号密码即可
    在这里插入图片描述
    elasticsearch安装文件路径
    在这里插入图片描述
    官方安装文档:https://www.elastic.co/guide/en/elasticsearch/reference/8.4/rpm.html#_use_the_ca_certificate_4

  • 相关阅读:
    HCIP-Datacom-ARST必选题库_ICMP【3道题】
    数据库之-元数据 DatabaseMetaData 初学
    2023-10-22
    6、maven
    C++:多态与虚函数,纯虚函数
    记录一次某MFC软件算法逆向之旅
    ESP32C3 PWM输出
    radio日志sim卡信号状态分析
    【Jvm】性能调优(上)线上问题排查工具汇总
    [山东科技大学OJ]1653 Problem C: 藏头诗
  • 原文地址:https://blog.csdn.net/u010833154/article/details/127610742