首页 > 其他分享 >Elastic集群监控工具的安装

Elastic集群监控工具的安装

时间:2022-11-02 15:45:19浏览次数:50  
标签:http xpack Elastic ssl elasticsearch 监控 cors 集群 security

HEAD插件安装

       elasticsearch-head 是用于监控Elasticsearch状态的客户端插件,包括数据可视化、执行增删改查操作等

安装步骤

      1.先安装Nodejs

      2.下载head源码

          https://github.com/mobz/elasticsearch-head

      3.安装依赖模块

         npm install

      4.启动服务

        npm run start

          

          

 HEAD使用步骤

        1.使用HEAD连接es集群的时候,es集群服务端默认不接受跨域请求,需要先修改es的配置文件然后重启服务

         

        修改elasticsearch所在目录中 config/elasticsearch.yml
        # 是否支持跨域
          http.cors.enabled: true
        # *表示支持所有域名
         http.cors.allow-origin: "*"

    2.401验证权限失败

        

         http.cors.enabled: true

         http.cors.allow-origin: "*"

         http.cors.allow-headers: "*"

        https://192.168.30.129:9200/?auth_user=elastic&auth_password=admin

node.name: node1
network.host: 192.168.30.129
discovery.seed_hosts: [ "192.168.30.129" ]
cluster.initial_master_nodes: [ "node1" ]
xpack.license.self_generated.type: basic
xpack.security.enabled: true
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.key: /data1/taishi/elasticsearch/instance/instance.key
xpack.security.http.ssl.certificate: /data1/taishi/elasticsearch/instance/instance.crt
xpack.security.http.ssl.certificate_authorities: /data1/taishi/elasticsearch/ca/ca.crt
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.key: /data1/taishi/elasticsearch/instance/instance.key
xpack.security.transport.ssl.certificate: /data1/taishi/elasticsearch/instance/instance.crt
xpack.security.transport.ssl.certificate_authorities: /data1/taishi/elasticsearch/ca/ca.crt
path.repo: ["/home/admin/es_backup"]

http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: "*"
elasticsearch.yml

     

 

标签:http,xpack,Elastic,ssl,elasticsearch,监控,cors,集群,security
From: https://www.cnblogs.com/yxh168/p/16850363.html

相关文章

  • elastic和filebeat
         ......
  • 记一次node节点无法加入K8S集群
    #问题现象:root@small-virtual-machine:~#kubeadmjoin10.0.0.133:6443--tokend2hyl5.5qt5fzjsdbxm2k5o   --discovery-token-ca-cert-hashsha256:d02674df33b......
  • ElasticSearch之Windows中环境安装
    ElasticSearch说明本章,我们主要以在Windows中对ElasticSearch安装进行介绍!1、......
  • 来至舒大佬的一键部署redis集群playbook
    ----name:installredishosts:allserial:2vars:-version:"redis-7.0.5"-user:"redis"-id:"88"-INSTALL_DIR:"/apps/redis"-CPUS:"......
  • Ubuntu22安装Hadoop完全分布式集群
    Ubuntu22.04安装Hadoop完全分布式集群1.网络配置需要修改四处,windows(宿主机),vmware,和虚拟机ubuntu(NAT模式)windows,设置vmware8的ipv4选项即可vmware的ip设置和windo......
  • Elastic Stack的四大组成部分
    Elasticsearch基于Json的分布式搜索和分析引擎Logstash动态数据收集管道,生态丰富Kibana提供数据的可视化界面Beats轻量级的数据采集器......
  • Mysql集群
    Mysql集群笔记概述我们在考虑MySQL数据库的高可用的架构时,主要要考虑如下几方面:如果数据库发生了宕机或者意外中断等故障,能尽快恢复数据库的可用性,尽可能的减少停机......
  • redis 5.0.5集群部署与故障模拟
    背景业务稳定性要求需要一套redis集群来保障因此采用rediscluster集群环境名称ip地址cpu内存master端口slave端口redis-65110.65.6.514c8G70017......
  • Docker容器监控之CAdvisor+InfluxDB+Granfana
    1、创建目录#mkdircig2、新建docker-composevidocker-compose.ymlversion:'3.1'volumes:grafana_data:{}services:influxdb:image:tut......
  • 监控进程脚本(达梦)
    2行为项目名称12行为应用启动命令1#!/bin/bash2name=dmserver3echo------------------------4echo"ps-ef|grepdmserver|grep-v"grep"|wc-l"......