• windows 单机 - elasticsearch-7.11.1 、kibana-7.11.1 安装部署


    前言

      如果您觉得有用的话,记得给博主点个赞,评论,收藏一键三连啊,写作不易啊^ _ ^。
      而且听说点赞的人每天的运气都不会太差,实在白嫖的话,那欢迎常来啊!!!


    windows 单机 - elasticsearch-7.11.1 、kibana-7.11.1 安装部署

    01 elasticsearch-7.11.1 下载安装

    01::01 下载

    elasticsearch-7.11.1 下载

    在这里插入图片描述

    01::02 配置信息修改

    在这里插入图片描述

    # ======================== Elasticsearch Configuration =========================
    #
    # NOTE: Elasticsearch comes with reasonable defaults for most settings.
    #       Before you set out to tweak and tune the configuration, make sure you
    #       understand what are you trying to accomplish and the consequences.
    #
    # The primary way of configuring a node is via this file. This template lists
    # the most important settings you may want to configure for a production cluster.
    #
    # Please consult the documentation for further information on configuration options:
    # https://www.elastic.co/guide/en/elasticsearch/reference/index.html
    #
    # ---------------------------------- Cluster -----------------------------------
    #
    # Use a descriptive name for your cluster:
    #
    #集群名称,默认可以不修改,此处es-cluster
    cluster.name: es-cluster
    #
    # ------------------------------------ Node ------------------------------------
    #
    # Use a descriptive name for the node:
    #
    #节点名称,必须修改,默认修改为当前机器名称,若是多示例则需要区分
    node.name: ${HOSTNAME}-9200
    #
    # Add custom attributes to the node:
    #
    #node.attr.rack: r1
    #
    # ----------------------------------- Paths ------------------------------------
    #
    # Path to directory where to store the data (separate multiple locations by comma):
    #
    # 数据目录与日志目录,默认在当前运行程序下,生产环境需要指定
    # 指定到此目录
    path.data: F:\es\elasticsearch-7.11.1-windows-x86_64\data
    #
    # Path to log files:
    #
    path.logs: F:\es\elasticsearch-7.11.1-windows-x86_64\logs
    #
    # ----------------------------------- Memory -----------------------------------
    #
    # Lock the memory on startup:
    #
    # 内存交换锁定,此处需要操作系统设置才生效
    bootstrap.memory_lock: true
    #
    # Make sure that the heap size is set to about half the memory available
    # on the system and that the owner of the process is allowed to use this
    # limit.
    #
    # Elasticsearch performs poorly when the system is swapping the memory.
    #
    # ---------------------------------- Network -----------------------------------
    #
    # Set the bind address to a specific IP (IPv4 or IPv6):
    # 
    # IP地址,默认是local,仅限本机访问,外网不可访问,设置0.0.0.0通用做法
    network.host: 172.20.10.3
    #
    # Set a custom port for HTTP:
    # 
    # 访问端口,默认9200,9300,建议明确指定
    http.port: 9200
    transport.port: 9300
    #
    # For more information, consult the network module documentation.
    #
    # --------------------------------- Discovery ----------------------------------
    #
    # Pass an initial list of hosts to perform discovery when this node is started:
    # The default list of hosts is ["127.0.0.1", "[::1]"]
    #
    # 默认单节点集群模式
    discovery.type: single-node
    #
    # 节点发现
    # discovery.seed_hosts: ["192.168.181.132:9300"]
    #
    # Bootstrap the cluster using an initial set of master-eligible nodes:
    #
    # 集群初始化节点(单节点集群模式会报错,这里先注释)
    # cluster.initial_master_nodes: ["192.168.181.132:9300"]
    #
    # For more information, consult the discovery and cluster formation module documentation.
    #
    # 部分电脑CPU不支持SSE4.2+,启动会报错,设置禁用机器学习功能
    xpack.ml.enabled: false
    #
    # ---------------------------------- Gateway -----------------------------------
    #
    # Block initial recovery after a full cluster restart until N nodes are started:
    #
    #gateway.recover_after_nodes: 3
    #
    # For more information, consult the gateway module documentation.
    #
    # ---------------------------------- Various -----------------------------------
    #
    # Require explicit names when deleting indices:
    #
    # 防止批量删除索引
    action.destructive_requires_name: true
    #
    # 设置处理器数量,默认无需设置,单机器多实例需要设置
    node.processors: 4
    #
    # 访问允许跨域(比如:head插件等访问ES集群需要配置这个)
    http.cors.enabled: true
    http.cors.allow-origin: "*"
    
    • 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
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112

    01::03 启动

    在这里插入图片描述
    双击 elasticsearch.bat

    02:04 测试

    http://172.20.10.3:9200/
    在这里插入图片描述

    02 kibana-7.11.1 安装部署

    02::01 下载

    kibana-7.11.1下载

    02::02 修改配置

    在这里插入图片描述

    # Kibana is served by a back end server. This setting specifies the port to use.
    # 访问端口,默认无需修改
    server.port: 5601
     
    # Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
    # The default is 'localhost', which usually means remote machines will not be able to connect.
    # To allow connections from remote users, set this parameter to a non-loopback address.
    # 访问地址IP,默认本地
    server.host: "172.20.10.3"
     
    # Enables you to specify a path to mount Kibana at if you are running behind a proxy.
    # Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
    # from requests it receives, and to prevent a deprecation warning at startup.
    # This setting cannot end in a slash.
    #server.basePath: ""
     
    # Specifies whether Kibana should rewrite requests that are prefixed with
    # `server.basePath` or require that they are rewritten by your reverse proxy.
    # This setting was effectively always `false` before Kibana 6.3 and will
    # default to `true` starting in Kibana 7.0.
    #server.rewriteBasePath: false
     
    # Specifies the public URL at which Kibana is available for end users. If
    # `server.basePath` is configured this URL should end with the same basePath.
    #server.publicBaseUrl: ""
     
    # The maximum payload size in bytes for incoming server requests.
    #server.maxPayloadBytes: 1048576
     
    # The Kibana server's name.  This is used for display purposes.
    #server.name: "your-hostname"
     
    # The URLs of the Elasticsearch instances to use for all your queries.
    # ES服务指向,集群下配置多个
    elasticsearch.hosts: ["http://172.20.10.3:9200"]
     
    # Kibana uses an index in Elasticsearch to store saved searches, visualizations and
    # dashboards. Kibana creates a new index if the index doesn't already exist.
    # kibana元数据存储索引名称,默认.kibana无需修改
    kibana.index: ".kibana"
     
    # The default application to load.
    #kibana.defaultAppId: "home"
     
    # If your Elasticsearch is protected with basic authentication, these settings provide
    # the username and password that the Kibana server uses to perform maintenance on the Kibana
    # index at startup. Your Kibana users still need to authenticate with Elasticsearch, which
    # is proxied through the Kibana server.
    #elasticsearch.username: "kibana_system"
    #elasticsearch.password: "pass"
     
    # Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively.
    # These settings enable SSL for outgoing requests from the Kibana server to the browser.
    #server.ssl.enabled: false
    #server.ssl.certificate: /path/to/your/server.crt
    #server.ssl.key: /path/to/your/server.key
     
    # Optional settings that provide the paths to the PEM-format SSL certificate and key files.
    # These files are used to verify the identity of Kibana to Elasticsearch and are required when
    # xpack.security.http.ssl.client_authentication in Elasticsearch is set to required.
    #elasticsearch.ssl.certificate: /path/to/your/client.crt
    #elasticsearch.ssl.key: /path/to/your/client.key
     
    # Optional setting that enables you to specify a path to the PEM file for the certificate
    # authority for your Elasticsearch instance.
    #elasticsearch.ssl.certificateAuthorities: [ "/path/to/your/CA.pem" ]
     
    # To disregard the validity of SSL certificates, change this setting's value to 'none'.
    #elasticsearch.ssl.verificationMode: full
     
    # Time in milliseconds to wait for Elasticsearch to respond to pings. Defaults to the value of
    # the elasticsearch.requestTimeout setting.
    #elasticsearch.pingTimeout: 1500
     
    # Time in milliseconds to wait for responses from the back end or Elasticsearch. This value
    # must be a positive integer.
    #elasticsearch.requestTimeout: 30000
     
    # List of Kibana client-side headers to send to Elasticsearch. To send *no* client-side
    # headers, set this value to [] (an empty list).
    #elasticsearch.requestHeadersWhitelist: [ authorization ]
     
    # Header names and values that are sent to Elasticsearch. Any custom headers cannot be overwritten
    # by client-side headers, regardless of the elasticsearch.requestHeadersWhitelist configuration.
    #elasticsearch.customHeaders: {}
     
    # Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable.
    #elasticsearch.shardTimeout: 30000
     
    # Logs queries sent to Elasticsearch. Requires logging.verbose set to true.
    #elasticsearch.logQueries: false
     
    # Specifies the path where Kibana creates the process ID file.
    #pid.file: /run/kibana/kibana.pid
     
    # Enables you to specify a file where Kibana stores log output.
    #logging.dest: stdout
     
    # Set the value of this setting to true to suppress all logging output.
    #logging.silent: false
     
    # Set the value of this setting to true to suppress all logging output other than error messages.
    #logging.quiet: false
     
    # Set the value of this setting to true to log all events, including system usage information
    # and all requests.
    #logging.verbose: false
     
    # Set the interval in milliseconds to sample system and process performance
    # metrics. Minimum is 100ms. Defaults to 5000.
    #ops.interval: 5000
     
    # Specifies locale to be used for all localizable strings, dates and number formats.
    # Supported languages are the following: English - en , by default , Chinese - zh-CN .
    #i18n.locale: "en"
    i18n.locale: "zh-CN"
    
    
    • 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
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117

    02::03 启动

    在这里插入图片描述
    双击 kibana.bat

    02::04 测试

    http://172.20.10.3:5601/
    在这里插入图片描述

    03 通过kibana 查看elasticsearch

    点击默认空间
    在这里插入图片描述
    然后按照下面截图点击

    在这里插入图片描述
    在这里插入图片描述

  • 相关阅读:
    【Java】js的字符串数字相加问题
    面试Python一定要记住的超基础知识点【速记】
    hashcode和equals方法的区别与联系
    宏集案例 | eX707G人机界面在石油钻井工程中的应用
    排序算法基础篇
    Elasticsearch的基本介绍
    pyenv安装python,Makefile报错
    机器学习即代码的时代已经到来
    Docker 与 K8S学习笔记(二十三)—— Kubernetes集群搭建
    7Docker搭建es和kibana
  • 原文地址:https://blog.csdn.net/weixin_38316697/article/details/126302949