win10下安装Elasticsearch和kibana教程

本文详细介绍了在Windows 10操作系统中安装和配置Elasticsearch、Kibana、Logstash的步骤,包括JDK的安装、环境变量配置,以及如何启动和验证各组件是否正常工作。同时,还提供了两款图形化界面工具Cerebro和ElasticHD的下载和使用方法。
摘要由CSDN通过智能技术生成

一、安装jdk

1、下载网址:https://www.oracle.com/java/technologies/javase-jdk8-downloads.html
2、安装下载后的jdk
3、配置环境变量

二、下载Elasticsearch

1、下载网址:https://www.elastic.co/downloads/elasticsearch
2、将下载好的es安装包在自己的目录解压
3、进入安装目录,执行命令 ./bin/elasticsearch.bat(或进入bin目录双击elasticsearch.bat文件运行)启动
4、访问http://localhost:9200/

在这里插入图片描述

{
   
  "name" : "DESKTOP-TDN2HSE",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "JvGLMa7HSaSFypB6eOitYQ",
  "version" : {
   
    "number" : "7.6.2",
    "build_flavor" : "default",
    "build_type" : "zip",
    "build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
    "build_date" : "2020-03-26T06:34:37.794943Z",
    "build_snapshot" : false,
    "lucene_version" : "8.4.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

​ 返回如上json字符串,即表明es安装成功

5、如启动不成功,根究对应的错误提示操作

​ 1)、如 not fund java一类的错误,请仔细检查jdk环境变量是否配置正确;

​ 2)、JAVA_HOME中不要带有特殊符号(如:D:\Program Files\Java\jdk1.8.0_211)

​ 3)、path中配置不要带磁盘符(如:;%JAVA_HOME%\bin;%JAVA_HOME%\jre;

​ 而非D:;%JAVA_HOME%\bin;%JAVA_HOME%\jre;)

​ 4)、不要带有空格

三、安装kibana插件

1、下载网址:https://www.elastic.co/downloads/kibana
2、将下载后的kibana解压到自己的文件夹
3、进入安装目录,执行命令./bin/kibana.bat(或进入bin目录双击kibana.bat)启动kibana插件
log   [08:39:01.137] [info][plugins-service] Plugin "case" is disabled.
  log   [08:39:33.985] [info][plugins-system] Setting up [37] plugins: [taskManager,siem,licensing,infra,code,encryptedSavedObjects,timelion,features,security,usageCollection,metrics,canvas,apm_oss,translations,reporting,uiActions,data,navigation,share,status_page,newsfeed,inspector,embeddable,advancedUiActions,dashboard_embeddable_container,expressions,visualizations,kibana_legacy,management,dev_tools,home,spaces,cloud,apm,graph,eui_utils,bfetch]
  log   [08:39:33.987] [info][plugins][taskManager] Setting up plugin
  log   [08:39:33.999] [info][plugins][siem] Setting up plugin
  log   [08:39:34.000] [info][licensing][plugins] Setting up plugin
  log   [08:39:34.002] [info][infra][plugins] Setting up plugin
  log   [08:39:34.003] [info][code][plugins] Setting up plugin
  log   [08:39:34.003] [info][encryptedSavedObjects][plugins] Setting up plugin
  log   [08:39:34.004] [warning][config][encryptedSavedObjects][plugins] Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml
  log   [08:39:34.008] [info][plugins][timelion] Setting up plugin
  log   [08:39:34.009] [info][features][plugins] Setting up plugin
  log   [08:39:34.010] [info][plugins][security] Setting up plugin
  log   [08:39:34.011] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
  log   [08:39:34.011] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
  log   [08:39:34.024] [info][plugins][usageCollection] Setting up plugin
  log   [08:39:34.026] [info][metrics][plugins] Setting up plugin
  log   [08:39:34.027] [info][canvas][plugins] Setting up plugin
  log   [08:39:34.030] [info][apm_oss][plugins] Setting up plugin
  log   [08:39:34.031] [info][plugins][translations] Setting up plugin
  log   [08:39:34.031] [info][data][plugins] Setting up plugin
  log   [08:39:34.035] [info][plugins][share] Setting up plugin
  log   [08:39:34.036] [info][home][plugins] Setting up plugin
  log   [08:39:34.040] [info][plugins][spaces] Setting up plugin
  log   [08:39:34.043] [info][cloud][plugins] Setting up plugin
  log   [08:39:
  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值