springboot 整合 elasticsearch 一 安装elasticsearch

环境说明:

查询maven官网spring-boot 2.1.13  

对应的 Spring Boot Starter Data Elasticsearch » 2.1.13.RELEASE

对应的Spring Data Elasticsearch » 3.1.16.RELEASE

对应的 elasticsearch 6.2.2

实际开发引入的确是 elasticsearch 6.4.3

 关于elasticsearch 6.4.3  和kibana6.4.3 直接在官网下载

下载地址如下:

Elasticsearch 6.4.3 | Elastichttps://www.elastic.co/cn/downloads/past-releases/elasticsearch-6-4-3Download Kibana Free | Get Started Now | ElasticDownload Kibana or the complete Elastic Stack (formerly ELK stack) for free and start visualizing, analyzing, and exploring your data with Elastic in minutes.https://www.elastic.co/downloads/kibana使用最简单的情况安装 elasticsearch  和kibana

解压 elasticsearch 后修改下配置文件

cluster.name: es-application #这个必须和项目中的es名字对应

node.name: node-1 节点名称

network.host: 0.0.0.0 可以链接访问的地址,0.0.0.0任何地址都可以链接访问

http.port: 9200 心跳检测的端口

discovery.type: single-node 单节点模式

更多修改 可以看官网配置

注意: 以上配置 未开启安全认真的配置

windows 启动elasticsearch.bat   linux  .elasticsearch.sh文件

访问如下 代表搭建成功

kibana的安装也没啥困难 下载后解压 修改config 下面的kibana.yml

server.port: 5601 #访问端口

elasticsearch.url: "http://localhost:9200" #elasticsearch 的链接地址

其他保持默认就ok

windows 启动kibana.bat  ,访问localhost:5601 然后点击dev tools 出现如下就可以通过dsl语句操作es

 下一篇springboot 整合 elasticsearch 二 项目搭建

springboot 整合 elasticsearch 二_q1035331653的博客-CSDN博客

Guess you like

Origin blog.csdn.net/q1035331653/article/details/121902125