• ElasticSearch8 8.3.0 安装 + kibana8.3.0 linux系统安装详细流程


    下载地址

    https://www.elastic.co/cn/downloads/past-releases#elasticsearch
    https://www.elastic.co/cn/downloads/past-releases#kibana

    wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.3.0-linux-x86_64.tar.gz
    
    wget https://artifacts.elastic.co/downloads/kibana/kibana-8.3.0-linux-x86_64.tar.gz
    
    
    • 1
    • 2
    • 3
    • 4

    安装

    创建esuser 用户

    /usr/local/elastic
    
    chown -R esuser /usr/local/elastic
    
    su esuser
    
    tar zxvf  解压包
    
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9

    出现 max file descriptors [4096] for elasticsearch process is too low
    查看下ulimit是否符合Es

    exit  退出用户
    
    • 1

    ulimit描述看这里

    ulimit -Hn       =65535的话则不需要修改
    ulimit -Sn       =65535的话则不需要修改
    
    • 1
    • 2

    修改方式

    vi /etc/security/limits.conf
    
    添加
    soft    nofile          65536
    hard    nofile          65536
    
    • 1
    • 2
    • 3
    • 4
    • 5

    再次查看

    ```java
    ulimit -Hn
    ulimit -Sn 
    
    • 1
    • 2
    • 3

    出现max virtual memory areas vm.max_map_count [65530] is too low

    vi /etc/sysctl.conf
    
    修改
    vm.max_map_count = 262144
    
    刷新系统文件
    sysctl -p
    
    切换esuser
    su esuser
    
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12

    修改yml

    cluster.name: my-application
    node.name: node-1
    network.host: 0.0.0.0
    http.port: 9200
    discovery.seed_hosts: ["https://127.0.0.1:9200"]
    cluster.initial_master_nodes: ["node-1"]
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    启动Es

    修改config目录下的 jvm.options 设置jvm
    这个是可以说的吗???? 如果需要的话!!!!!

    -Xms1g
    -Xmx1g
    
    • 1
    • 2

    启动

     ./elasticsearch
    
    • 1

    Es控制台会自动的帮你创建安全配置 这段一定要复制下来备用

    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    ✅ Elasticsearch security features have been automatically configured!Authentication is enabled and cluster connections are encrypted.1Password for the elastic user (reset with `bin/elasticsearch-reset-password -u elastic`):
      1sWR1BpChhKDVmoyM-lW
    
    ℹ️  HTTP CA certificate SHA-256 fingerprint:
      ac11053b4925fc7e56213571d81427987f94b53564720a8a8d8a3bf53e50c937
    
    【2Configure Kibana to use this cluster:Run Kibana and click the configuration link in the terminal when Kibana starts.Copy the following enrollment token and paste it into Kibana in your browser (valid for the next 30 minutes):
      eyJ2ZXIiOiI4LjMuMCIsImFkciI6WyIxNzIuMjYuMy4yMTM6OTIwMCJdLCJmZ3IiOiJhYzExMDUzYjQ5MjVmYzdlNTYyMTM1NzFkODE0Mjc5ODdmOTRiNTM1NjQ3MjBhOGE4ZDhhM2JmNTNlNTBjOTM3Iiwia2V5IjoieGRGQnNvRUJlNTMzOEh2RWNFU2g6TzlKNzVTN0VROS1KWnVJUUo4QWpjZyJ9
    
    ℹ️  Configure other nodes to join this cluster:On this node:Create an enrollment token with `bin/elasticsearch-create-enrollment-token -s node`.Uncomment the transport.host setting at the end of config/elasticsearch.yml.Restart Elasticsearch.On other nodes:Start Elasticsearch with `bin/elasticsearch --enrollment-token <token>`, using the enrollment token that you generated.
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    
    
    • 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

    【1】是es的账户密码 1sWR1BpChhKDVmoyM-lW 用户名是 elastic(最高权限)
    我们也可以通过 bin/elasticsearch-reset-password 来调整密码

    • ./elasticsearch-reset-password -u 用户名 重置密码
    • ./elasticsearch-reset-password --username 用户名 -i 修改指定用户密码
    • ./elasticsearch-reset-password --username kibana_system 重置kibana密码
    • ./elasticsearch-reset-password --url “https://host:port” --username ‘用户名’ -i

    【2】kibana初始化与Es链接SSl的token 有效期30分钟 过期使用
    .\elasticsearch-create-enrollment-token -s kibana 再次创建

    在这里插入图片描述
    访问时要带HTTPS HTTPS HTTPS HTTPS HTTPS HTTPS HTTPS HTTPS

    生成SSL的密钥都在/config/certs
    在这里插入图片描述

    启动kibana

    修改yml 不需要你配置链接的es

    server.port: 5601
    server.host: "127.0.0.1"
    
    
    • 1
    • 2
    • 3

    启动

    ./kibana
    
    
    • 1
    • 2

    只有不设置elasticsearch.hosts 才能看到这个界面哦
    在这里插入图片描述

    将生成的token 复制进来

    出现Generate a new enrollment token or configure manually. 需要重新生成
    在这里插入图片描述

    执行 重新生成token

    ./elasticsearch-create-enrollment-token -s kibana
    
    • 1

    这个界面就坐等链接成功
    在这里插入图片描述

    登陆用户名密码和Es的一毛一样在这里插入图片描述
    在这里插入图片描述

  • 相关阅读:
    Go学习笔记 -- 控制协程执行顺序
    从阿里出发看微服务发展!P8架构师手打800页微服务深度解析笔记
    常见的抓包检测及抓包方案
    预制菜还没火,加盟商已经亏惨了
    灯具类产品各站点上架TEMU平台需要提供什么认证?
    windows下使用php-ffmpeg获取视频第一帧的图片
    【C++】:list容器的基本使用
    [附源码]计算机毕业设计JAVA化妆品销售管理系统
    CMake入门教程【核心篇】设置和使用缓存变量
    爱普生LQ1900KIIH复位方法
  • 原文地址:https://blog.csdn.net/crazyo2jam/article/details/125533281