首页 > 编程语言 > 详细

springboot+elasticsearch + rabbitMQ实现全文检索(项目搭建)

时间:2018-12-20 16:21:20      阅读:143      评论:0      收藏:0      [点我收藏+]

最近做一个社区类的项目:实现全文检索

开发完成做一个总结记录。

spring-boot-1.5.9.RELEASE

ES 5.6.4

首先搭建ES环境

引用大佬文章 搭建ES环境:

https://blog.csdn.net/u012270682/article/details/72934270

cluster.name: my-application

node.name: node-1

network.host: 0.0.0.0

http.port: 9200

http.cors.enabled: true 
http.cors.allow-origin: "*"
node.master: true
node.data: true

本地最后ES C:\elasticsearch-6.5.1\config\elasticsearch.yml 配置

因为本人的原因,需要改掉head 的端口:C:\elasticsearch-6.5.1\elasticsearch-head-master\Gruntfile.js

技术分享图片

复制三个相同的ES

技术分享图片

cluster.name: my-elasticsearch

node.name: node-1

network.host: 127.0.0.1

http.port: 9200
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"]

http.cors.enabled: true 
http.cors.allow-origin: "*"
node.master: true
node.data: true

插入相同数据,每个都要改变端口号,对于后面四个参数的解释:https://blog.csdn.net/a19860903/article/details/72467996

 

 

springboot+elasticsearch + rabbitMQ实现全文检索(项目搭建)

原文:https://www.cnblogs.com/mfser/p/10149851.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!