2.ElasticSearch的安装

官网:https://www.elastic.co

image-20230226150310480

JDK1.8 ElasticSearch 客户端,界面工具

java开发,ElasticSearch 的版本和我们之后对应的 java的核心jar包,版本对应!JDK环境是正常的

本篇博客使用的Windows环境下的

1.解压即可

image-20230226145756191

2.属性目录

bin 启动文件
conf 配置文件
	log4j 日志配置文件
	jvm.options java虚拟机相关的设置
	elasticsearch.yml elastsearch配置文件 默认9200
lib 相关jar包
log 日志
modules 功能模块
plgins 插件

3.启动

image-20230226150542732

image-20230226150619102

4.安装可视化界面 es head的插件

PS:前提条件需要NodeJs环境

4.1下载

下载地址:https://github.com/mobz/elasticsearch-head

4.2.启动

npm install
npm run start

4.3.连接测试发现,存在跨域问题:配置es

http.cors.enabled: true
http.cors.allow-origin: "*"

4.4.重启es服务,再次连接

5.安装Kibana

image-20230226161730266

Kibana和elasticsearch对应

5.1、解压

image-20230226162538422

5.2、bin目录里启动

image-20230226162956143

5.3、访问端口5601

image-20230226163125620

5.4、开发工具!(Post、curl,Head 、谷歌浏览器插件测试)

image-20230226163359472

之后的所有操作都在这里进行填写

5.5、汉化,改完配置后,重启

image-20230226163646010

image-20230226163924468

6.了解ELK

image-20230226160402922