ElasticSearch :存储和检索
- 安装ik分词器,进行中文分词
ElasticSearch-head:可视化数据的页面
Kibana:针对ES的可视化平台,用来搜索交互存储,可动态生成数据图表
注意:版本需要一致
1, ElasticSearch安装
下载地址:https://www.elastic.co/cn/downloads/elasticsearch
# 启动ElasticSearch
cd bin/
elasticsearch.bat
- 访问:http://localhost:9200/
1.1 解决es-head跨域问题
# 在config/elasticsearch.yml尾部添加
http.cors.enabled: true
http.cors.allow-origin: "*"
1.2 安装ik分词器
提供两种分词算法:
ik_smart : 最少切分
ik_max_word : 最细力度划分
下载地址:https://github.com/medcl/elasticsearch-analysis-ik
- 将下载解压好的ik分词器放入elasticsearch/plugins目录下即可
2, ElasticSearch-head安装
下载地址:https://github.com/mobz/elasticsearch-head
# 项目初始化并启动
cd elasticsearch-head
npm install
npm run start
- 访问:http://localhost:9100/
3, Kibana安装
下载地址:https://www.elastic.co/cn/downloads/kibana
# 启动Kibana
cd bin/
kibana.bat
- 访问:http://localhost:5601/