Elasticsearch+Kibana集群部署(3节点)

这篇具有很好参考价值的文章主要介绍了Elasticsearch+Kibana集群部署(3节点)。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Elasticsearch+Kibana集群部署(3节点)

l i n d o r − − 良民笔记 lindor--良民笔记 lindor良民笔记

前言

   仅作为笔记并记录elk搭建过程和搭建中遇到的问题,转载请注明出处,目前该章节只讲述了 elasticsearch+Kibana 的安装过程,以及安装中的一些简单报错;适合有适当基础的同学,理论表的比较少。

项目地址:
  • elastic官网地址:https://www.elastic.co/cn/

    elastic产品地址:https://www.elastic.co/cn/elastic-stack

  • 清华大学yum源地址:https://mirrors.tuna.tsinghua.edu.cn/elasticstack/

准备工具:
  • ELK版本:elasticsearch-7.7.1-x86_64.rpm

  • Filebeat版本:filebeat-7.7.1-x86_64.rpm

  • Kibana版本:kibana-7.7.1-x86_64.rpm

  • JDK版本:java-1.8.0-openjdk

  • Logstash版本:logstash-8.5.0-linux-x86_64.rpm

节点分布:
IP 节点类型 部署应用
10.0.0.1 es-master elasticsearch,kibana,filebeat,logstash
10.0.0.2 es-nodes1 elasticsearch
10.0.0.3 es-nodes2 elasticsearch

一、Elasticsearch部署

  • 只展示单台ES节点 ,其他ES节点步骤一致

  • 安装JDK
    1.安装
    [root@localhost ~]# yum -y install java-1.8.0-openjdk
    
    2.验证
    root@localhost ~]# java -version
    openjdk version "1.8.0_352"
    OpenJDK Runtime Environment (build 1.8.0_352-b08)
    OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)
    
    > yum安装的jdk 不用配置环境变量。手动下载linux的包需要配置环境变量
    
  • 安装Elasticsearch

    我这里提前上传到了/root/ 目录下,直接本地安装即可。下载可参考项目地址[^1]

    1.安装
    创建elk用户并授权elk文件夹权限
    [root@localhost ~]# ls
    elasticsearch-7.7.1-x86_64.rpm  
    
    [root@localhost ~]# adduser elasticsearch    #创建elasticsearch用户
    [root@localhost ~]# yum -y localinstall elasticsearch-7.7.1-x86_64.rpm    #安装elasticsearch
    [root@localhost ~]# chown -R elasticsearch:elasticsearch /usr/share/elasticsearch/   #授权所有权给elasticsearch用户
    [root@localhost ~]# mkdir -p /home/elasticsearch/{data,logs}     #创建data/log文件夹
    [root@localhost ~]# chown -R elasticsearch:elasticsearch /home/elasticsearch    #授权文件夹所属用户为elasticsearch
    [root@localhost ~]# su elasticsearch         					#切换elasticsearch用户
    [root@localhost ~]# /usr/share/elasticsearch/bin/elasticsearch 			#前台启动查看是否报错
    
    
    2.elasticsearch安装路径
    [root@localhost ~]# whereis elasticsearch
    elasticsearch: /etc/elasticsearch /usr/share/elasticsearch
    配置文件路径:/etc/elasticsearch 
    安装程序路径:/usr/share/elasticsearch
    

  • Elasticsearch 系统优化

    优化默认软限制或硬限制 参考:https://access.redhat.com/solutions/406663

    /etc/security/limits.d/20-nproc.conf 下添加如下配置
    优化配置:
    [root@localhost limits.d]# vim /etc/security/limits.d/20-nproc.conf
    
    elasticsearch    soft    nofile    65535   #elasticsearch  代表你创建的es用户我这里是elasticsearch
    elasticsearch    hard    nofile    65535
    
    elasticsearch    soft    nproc    4096
    elasticsearch    hard    nproc    4096
    
    elasticsearch    soft    memlock    unlimited
    elasticsearch    hard    memlock    unlimited
    ‍
    
    
  • Elasticsearch节点配置

    一共3个节点 分别是 master、node1、node2,我这里用IP命名

    主要配置文件在/etc/elasticsearch/elasticsearch.yml

    master

    [root@localhost ~]# grep -Ev "^$|^[#;]"  /etc/elasticsearch/elasticsearch.yml
    path.data: /var/log/elasticsearch/data
    path.logs: /var/log/elasticsearch/logs
    cluster.name: els
    node.name: 10.0.0.1
    network.host: 10.0.0.1
    node.master: true   #抢占master
    http.port: 9200
    http.cors.enabled: true
    http.cors.allow-origin: '*'
    discovery.seed_hosts: ['10.0.0.1', '10.0.0.2','10.0.0.3']
    cluster.initial_master_nodes: ['10.0.0.1', '10.0.0.2','10.0.0.3']
    discovery.zen.minimum_master_nodes: 3
    indices.memory.index_buffer_size: 20%
    indices.query.bool.max_clause_count: 100000000
    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true
    xpack.security.transport.ssl.verification_mode: certificate
    xpack.security.transport.ssl.client_authentication: required
    xpack.security.transport.ssl.keystore.path: /etc/elasticsearch/elastic-certificates.p12	  #证书配置
    xpack.security.transport.ssl.truststore.path: /etc/elasticsearch/elastic-certificates.p12  #证书配置
    

    node1

    [root@localhost ~]# grep -Ev "^$|^[#;]"  /etc/elasticsearch/elasticsearch.yml
    path.data: /var/log/elasticsearch/data
    path.logs: /var/log/elasticsearch/logs
    cluster.name: els
    node.name: 192.168.169.40
    network.host: 192.168.169.40
    node.master: true   #抢占master
    http.port: 9200
    http.cors.enabled: true
    http.cors.allow-origin: '*'
    discovery.seed_hosts: ['10.0.0.1', '10.0.0.2','10.0.0.3']
    cluster.initial_master_nodes: ['10.0.0.1', '10.0.0.2','10.0.0.3']
    discovery.zen.minimum_master_nodes: 3
    indices.memory.index_buffer_size: 20%
    indices.query.bool.max_clause_count: 100000000
    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true
    xpack.security.transport.ssl.verification_mode: certificate
    xpack.security.transport.ssl.client_authentication: required
    xpack.security.transport.ssl.keystore.path: /etc/elasticsearch/elastic-certificates.p12	  #证书配置
    xpack.security.transport.ssl.truststore.path: /etc/elasticsearch/elastic-certificates.p12  #证书配置
    

    node2

    [root@localhost ~]# grep -Ev "^$|^[#;]"  /etc/elasticsearch/elasticsearch.yml
    path.data: /var/log/elasticsearch/data
    path.logs: /var/log/elasticsearch/logs
    cluster.name: els
    node.name: 10.0.0.3
    network.host: 10.0.0.3
    node.master: true   #抢占master
    http.port: 9200
    http.cors.enabled: true
    http.cors.allow-origin: '*'
    discovery.seed_hosts: ['10.0.0.1', '10.0.0.2','10.0.0.3']
    cluster.initial_master_nodes: ['10.0.0.1', '10.0.0.2','10.0.0.3']
    discovery.zen.minimum_master_nodes: 3
    indices.memory.index_buffer_size: 20%
    indices.query.bool.max_clause_count: 100000000
    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true
    xpack.security.transport.ssl.verification_mode: certificate
    xpack.security.transport.ssl.client_authentication: required
    xpack.security.transport.ssl.keystore.path: /etc/elasticsearch/elastic-certificates.p12   #证书配置
    xpack.security.transport.ssl.truststore.path: /etc/elasticsearch/elastic-certificates.p12   #证书配置
    

    注:在没做好基础配置前,安装好后先切换到ES用户前台启动一次,看看是否报错。然后在做好基础配置后,一定要切换到ES用户,前台启动看看是否报错等,在接着往下

    Elasticsearch 设置证书和密钥

    在/etc/elasticsearch/elasticsearch.yml下 添加如下配置

    xpack.security.enabled: true
    xpack.security.transport.ssl.keystore.path: /etc/elasticsearch/elastic-certificates.p12   #证书配置
    xpack.security.transport.ssl.truststore.path: /etc/elasticsearch/elastic-certificates.p12   #证书配置
    

    生成如下证书,并赋予证书权限,有疑问请跳转到报错篇

    #生成证书和证书密钥,证书生成后默认路径在/usr/share/elasticsearch/下
    [root@localhost ~]# sh /usr/share/elasticsearch/bin/elasticsearch-certutil ca  #生成证书,直接全部回车到最后
    [root@localhost ~]# sh /usr/share/elasticsearch/bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12   #生成证书对应的密钥,在将密钥分发到/etc/elasticsearch/
    [root@localhost ~]# ls /usr/share/elasticsearch/
    bin  elastic-certificates.p12  elastic-stack-ca.p12  jdk  lib  LICENSE.txt  modules  NOTICE.txt  plugins  README.asciidoc
    
    #拷贝证书到/etc/elasticsearch/下,和配置文件对应,并授权
    [root@localhost ~]# cp /usr/share/elasticsearch/elastic-certificates.p12  /etc/elasticsearch/
    [root@localhost ~]# chomd 777 /etc/elasticsearch/elastic-certificates.p12
    [root@localhost ~]# chown -R elasticsearch:elasticsearch /etc/elasticsearch/elastic-certificates.p12
    [root@localhost ~]# ls /etc/elasticsearch/
    elastic-certificates.p12  elasticsearch.yml  jvm.options.d      role_mapping.yml  users
    elasticsearch.keystore    jvm.options        log4j2.properties  roles.yml         users_roles
    
    

    注:设置证书在集群没起来的时候就可以配置,配置完证书后**把密钥证书 elastic-certificates.p12 **分发证书到各个节点的/etc/elasticsearch/下,路径可自定义。

    Elasticsearch 生成密码

    常见的生成密码有两种,我只展示第一种;

    Plan A:随机生成所有密码

    Plan B:自定义生成密码

    随机生成密码如下:

    命令:
    sh /usr/share/elasticsearch/bin/elasticsearch-setup-passwords auto
    
    演示:
    [root@localhost bin]# sh /usr/share/elasticsearch/bin/elasticsearch-setup-passwords auto
    Initiating the setup of passwords for reserved users elastic,apm_system,kibana,logstash_system,beats_system,remote_monitoring_user.
    The passwords will be randomly generated and printed to the console.
    Please confirm that you would like to continue [y/N] y
    
    
    Changed password for user apm_system
    PASSWORD apm_system = sMZg4sW5bBbfL1fRjDPP
    
    Changed password for user kibana
    PASSWORD kibana = qZjB60sGzxfBcPrTxdQT
    
    Changed password for user logstash_system
    PASSWORD logstash_system = raxBaIRutgxxwRqe63c1
    
    Changed password for user beats_system
    PASSWORD beats_system = 86NyKgnMkaDrb9gBSyr4
    
    Changed password for user remote_monitoring_user
    PASSWORD remote_monitoring_user = sSQycnFqnTeEuxBZN7HS
    
    Changed password for user elastic
    PASSWORD elastic = Y3NpRblUxipGz9YCN6gg
    
    [root@localhost bin]#
    

    注:生成密钥后需要做好保存,在集群没起来前,生成密钥时会报错。集群起来后在master节点生成密码即可;

  • Elasticsearch验证

    通过curl的方式,查看每个节点的状态是否正常和集群是否正常
    http://10.0.0.1:9200

    {
      "name" : "10.0.0.1",
      "cluster_name" : "els",
      "cluster_uuid" : "rCoR2r6oTzmcozBuUImupA",
      "version" : {
        "number" : "7.7.1",
        "build_flavor" : "default",
        "build_type" : "rpm",
        "build_hash" : "ad56dce891c901a492bb1ee393f12dfff473a423",
        "build_date" : "2020-05-28T16:30:01.040088Z",
        "build_snapshot" : false,
        "lucene_version" : "8.5.1",
        "minimum_wire_compatibility_version" : "6.8.0",
        "minimum_index_compatibility_version" : "6.0.0-beta1"
      },
      "tagline" : "You Know, for Search"
    }
    

    http://10.0.0.2:9200

    {
      "name" : "10.0.0.2",
      "cluster_name" : "els",
      "cluster_uuid" : "rCoR2r6oTzmcozBuUImupA",
      "version" : {
        "number" : "7.7.1",
        "build_flavor" : "default",
        "build_type" : "rpm",
        "build_hash" : "ad56dce891c901a492bb1ee393f12dfff473a423",
        "build_date" : "2020-05-28T16:30:01.040088Z",
        "build_snapshot" : false,
        "lucene_version" : "8.5.1",
        "minimum_wire_compatibility_version" : "6.8.0",
        "minimum_index_compatibility_version" : "6.0.0-beta1"
      },
      "tagline" : "You Know, for Search"
    }
    

    http://10.0.0.3:9200

     {
       "name" : "10.0.0.3",
       "cluster_name" : "els",
       "cluster_uuid" : "rCoR2r6oTzmcozBuUImupA",
       "version" : {
         "number" : "7.7.1",
         "build_flavor" : "default",
         "build_type" : "rpm",
         "build_hash" : "ad56dce891c901a492bb1ee393f12dfff473a423",
         "build_date" : "2020-05-28T16:30:01.040088Z",
         "build_snapshot" : false,
         "lucene_version" : "8.5.1",
         "minimum_wire_compatibility_version" : "6.8.0",
         "minimum_index_compatibility_version" : "6.0.0-beta1"
       },
       "tagline" : "You Know, for Search"
     }
    

    基本正常,接下来查看集群状态
    http://10.0.0.1:9200/_cluster/health?pretty

    {
      "cluster_name" : "els",  	#集群名称
      "status" : "green",     	#集群状态,green表示所有主分片和副本分片%100可用(属于正常)
      "timed_out" : false,		#超时
      "number_of_nodes" : 3,	#集群节点3"number_of_data_nodes" : 3,
      "active_primary_shards" : 70,
      "active_shards" : 140,
      "relocating_shards" : 2,
      "initializing_shards" : 0,
      "unassigned_shards" : 0,
      "delayed_unassigned_shards" : 0,
      "number_of_pending_tasks" : 0,
      "number_of_in_flight_fetch" : 0,
      "task_max_waiting_in_queue_millis" : 0,
      "active_shards_percent_as_number" : 100.0
    }
    

    检查端口是否正常

    [root@localhost ~]# netstat -anpt
    [root@localhost ~]# lsof -i:9200
    

    测试各个节点正常,集群正常,端口正常,自此es集群部署完毕

  • Elasticsearch报错
  • 配置好证书后,切换elasticsearch用户启动ES时,收到如下报错

    [ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [192.168.169.12] uncaught exception in thread [main]
    org.elasticsearch.bootstrap.StartupException: ElasticsearchSecurityException[failed to load SSL configuration [xpack.security.transport.ssl]]; nested: ElasticsearchException[failed to initialize SSL TrustManager - not permitted to read truststore file [/etc/elasticsearch/elastic-certificates.p12]]; nested: AccessDeniedException[/etc/elasticsearch/elastic-certificates.p12];
    
    #报错原因:无法加载/etc/elasticsearch/elastic-certificates.p12证书
    
    #因为是直接生成的证书,未改动权限,直接copy到/etc/elasticsearch目录下,查看了下权限,无法执行,不属于elasticsearch用户。
    #解决办法:授权给elasticsearch用户,加权到777在更改。
    chomd 777 /etc/elasticsearch/elastic-certificates.p12
    chown -R elasticsearch:elasticsearch /etc/elasticsearch/elastic-certificates.p12
    #再启动时问题解决
    

二、kibana部署

  • kibana安装

    依旧是提前下载好了并上传到了10.0.0.1的/root/下

    [root@localhost ~]# ls
    kibana-7.7.1-x86_64.rpm
    
    #直接本地安装
    [root@localhost ~]# yum -y localinstall kibana-7.7.1-x86_64.rpm
    
    #文件路径
    [root@localhost ~]# whereis kibana
    kibana: /etc/kibana /usr/share/kibana
    
    #配置文件路径:/etc/kibana
    #安装程序路径:/usr/share/kibana
    
  • kibana配置

    配置文件是 /etc/kibana/kibana.yml 直接编辑找到相关配置更改即可,参考如下

    [root@localhost kibana]# grep -Ev "^$|^[#;]" /etc/kibana/kibana.yml
    server.port: 5601
    server.host: "0.0.0.0"
    server.maxPayloadBytes: 10485760
    elasticsearch.hosts: ["http://192.168.169.41:9200","http://192.168.169.40:9200","http://192.168.169.39:9200"]
    #kibana.index: ".kibana"      //参考kibana报错,可解决
    elasticsearch.username: "elastic"
    elasticsearch.password: "Y3NpRblUxipGz9YCN6gg"
    i18n.locale: "zh-CN"       #编码改为中国
    
  • 启动kibana,进入web界面

    启动命令如下;比较粗暴直接在root下启动
    [root@localhost ~]# sh /usr/share/kibana/bin/kibana --allow-root
    
    没有报错,直接系统启动
    [root@localhost ~]# systemctl start kibana
    
    

    Elasticsearch+Kibana集群部署(3节点)

    自此kibana安装完毕,安装完毕还没有数据,需要配合filebeat、logstash或者auditbeat,推送日志数据到es中,然后建立索引,并配合面板进行展示即可

  • kibana报错

    基础配置做好时启动报如下错误文章来源地址https://www.toymoban.com/news/detail-492320.html

    [root@localhost ~]# sh /usr/share/kibana/bin/kibana --allow-root
      log   [07:47:48.360] [warning][plugins-discovery] Expect plugin "id" in camelCase, but found: apm_oss
      log   [07:47:48.368] [warning][plugins-discovery] Expect plugin "id" in camelCase, but found: file_upload
      log   [07:47:48.369] [warning][plugins-discovery] Expect plugin "id" in camelCase, but found: triggers_actions_ui
      log   [07:47:53.145] [warning][config][deprecation] Setting [elasticsearch.username] to "elastic" is deprecated. You should use the "kibana" user instead.
      log   [07:47:53.145] [warning][config][deprecation] Setting [monitoring.username] to "elastic" is deprecated. You should use the "kibana" user instead.
      log   [07:47:53.148] [fatal][root] { Error: Unknown configuration key(s): "index". Check for spelling errors and ensure that expected plugins are installed.
        at ensureValidConfiguration (/usr/share/kibana/src/core/server/legacy/config/ensure_valid_configuration.js:46:11) code: 'InvalidConfig', processExitCode: 64, cause: undefined }
    
     FATAL  Error: Unknown configuration key(s): "index". Check for spelling errors and ensure that expected plugins are installed.
    
    报错原因:Unknown configuration key(s): "index",是因为此项配置错误导致,官网8.0版本的kibana中 已经没有使用该配置,所以删除该配置即可。
    参考:https://discuss.elastic.co/t/kibana-8-0-0-unknown-configuration-key-s-kibana-index/299228/1
    

到了这里,关于Elasticsearch+Kibana集群部署(3节点)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • CentOS 7 使用Docker方式搭建ElasticSearch 7.7.0 三节点集群,并配置elasticsearch-head插件,ik分词器,以及Kibana可视化平台

    IP 角色 172.16.31.191 elasticsearch-1 172.16.31.192 elasticsearch-2 172.16.31.193 elasticsearch-3 并创建相关挂载目录,3台虚拟机都要,如下 还要对文件夹加设置开放权限,如果不开放权限,则会报错无法写入数据的情况,3台虚拟机都要,如下 172.16.31.191 172.16.31.192 172.16.31.193 172.16.31.191 172.16.3

    2024年02月04日
    浏览(35)
  • Es elasticsearch 十九 kibana 可视化配置图表 及功能 集群部署

    目录 Es kibana 可视化 下载zip 解压  bin/kibana.bat 启动 管理索引管理 吧logstash 存进来的数据 按照 xxx-* 方式 保存索引模式 通过 discove 配置可视化界面 图表数据实时刷新 时序图配置 饼图配置 表格数据配置 添加仪表盘 图表样例 使用后模拟绘制方法好看些 Grok 语法测试工具 集群

    2024年02月08日
    浏览(38)
  • 搜索引擎elasticsearch :安装elasticsearch (包含安装组件kibana、IK分词器、部署es集群)

    kibana可以帮助我们方便地编写DSL语句,所以还要装kibana 因为我们还需要部署kibana容器,因此需要让es和kibana容器互联。这里先创建一个网络: 这里我们采用elasticsearch的7.12.1版本的镜像,这个镜像体积非常大,接近1G。不建议大家自己pull。 课前资料提供了镜像的tar包: 大家将

    2024年02月16日
    浏览(44)
  • k8s部署Elasticsearch集群+Kibana方案--开启X-Pack 安全认证

    本文中使用 StatefulSet 方式部署 Elasticsearch 集群,并且开启X-Pack 安全认证,存储使用的是NFS,属于一个初学者自己探索的方案,如果有比较好的方案,还请不吝评论赐教。 版本说明: Kubernetes v1.25.6 – v1.26.4 Elasticsearch, Kibana 7.13.3 NFS Subdir External Provisioner 前置环境 需要安装好

    2024年02月11日
    浏览(40)
  • 【ELK企业级日志分析系统】部署Filebeat+Kafka+Logstash+Elasticsearch+Kibana集群详解(EFLFK)

    参见安装与部署ELK详解 参见安装与部署EFLK详解 参见安装与部署Zookeeper集群详解 1.1.1 为什么需要消息队列(MQ) MQ(Message Queue)主要原因是由于 在高并发环境下,同步请求来不及处理,请求往往会发生阻塞 。比如大量的并发请求,访问数据库,导致行锁表锁,最后请求线程会

    2024年02月16日
    浏览(39)
  • Elasticsearch & Kibana 8.6.1 集群配置

    Elasticsearch是一个分布式、高扩展、高实时的搜索与数据分析引擎。它能很方便的使大量数据具有搜索、分析和探索的能力。 Elasticsearch可以看做一个便于搜索的数据库,相比传统关系型数据库如下 Mysql ‐ Databases ‐ Tables ‐ Rows ‐ Columns Elasticsearch ‐ Indices ‐ Types ‐ Documents

    2024年02月14日
    浏览(27)
  • elasticsearch集群安装+安全验证+kibana安装

    修改limits.cong配置 /etc/security/limits.conf 修改如下 echo \\\"* soft nofile 65536 hard nofile 131072 soft nproc 4096 hard nproc 4096 soft memlock unlimited hard memlock unlimited\\\" /etc/security/limits.conf 修改sysctl配置 /etc/sysctl.conf 修改如下 echo “vm.max_map_count = 262145” /etc/sysctl.conf #生效 sysctl -p 修改es占用内存 /opt/

    2024年04月16日
    浏览(26)
  • mac下ElasticSearch 集群搭建,使用Kibana配置和管理集群

    Elasticsearch如果做集群的话Master节点至少三台服务器或者三个Master实例加入相同集群,三个Master节点最多只能故障一台Master节点,如果故障两个Master节点,Elasticsearch将无法组成集群.会报错,Kibana也无法启动,因为Kibana无法获取集群中的节点信息。 现在在mac下安装三个ES实例,

    2024年02月10日
    浏览(45)
  • ELK集群部署---Kibana的部署

    1.  环境规划: 主机名 IP地址 角色 node1 192.168.56.111 ElasticSearch(master) Zookeeper Kafka node2 192.168.56.112 ElasticSearch(slave) Kibana Zookeeper Kafka node3 192.168.56.113 ElasticSearch(slave) Zookeeper Kafka node4 192.168.56.114 Logstash Filebeat 2.  安装Kibana: 3.  配置Kibana: 4.  启动Kibana: 5.  访问Kibana,\\\" http://

    2024年02月10日
    浏览(25)
  • elasticSearch+kibana+logstash+filebeat集群改成https认证

    ps:主节点操作 切换用户:su es 进入目录:cd /home/es/elasticsearch-7.6.2 创建文件:vi instances.yml 生成证书:/home/es/elasticsearch-7.6.2/bin/elasticsearch-certutil cert ca --pem --in instances.yml --out certs.zip 解压得到各个证书:unzip certs.zip ps:三个节点 切换用户:su es 将解压得到的三个文件夹文件

    2024年02月09日
    浏览(32)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包