elasticsearch安装
Elasticsearch是一款基于Apache Lucene构建的开源搜索引擎① 分布式;
② 实时搜索;
③ 分析引擎;
各个版本下载:
https://github.com/elasticsearch/elasticsearch/releases
java API:
http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/
http://www.zihou.me/html/2014/01/16/9058.html
1. 安装elasticsearch集群
》》elasticsearch-node1:
node.name: "mengka-mac-node1"
transport.tcp.port: 9300
http.port: 9200
》》elasticsearch-node2:
node.name: "mengka-mac-node2"
transport.tcp.port: 9301
http.port: 9201
2. 安装head插件:
cd elasticsearch-node1/bin
mengka-2:bin hyy044101331$ ./plugin -install mobz/elasticsearch-head
出现plugin文件夹:
/Users/hyy044101331/programfile/elasticsearch/elasticsearch-node1/plugins/head
查看数据:
http://localhost:9200/_plugin/head/
3. 安装集群监控插件:
bin/plugin --install lukas-vlcek/bigdesk
github代码:
https://github.com/lukas-vlcek/bigdesk
监控页面:
http://localhost:9200/_plugin/bigdesk/#nodes/kR2PpWdeSCu7SleuC93EVw
4. 启动集群:
sh start-elasticsearch-jiqun.sh
5. 查看线程:
ps -ef|grep elasticsearch
6. 集群搭建完成:
通过head插件查看:
http://127.0.0.1:9200/_plugin/head/
http://127.0.0.1:9201/_plugin/head/
通过bigdesk插件查看:
http://localhost:9200/_plugin/bigdesk/#nodes/kR2PpWdeSCu7SleuC93EVw
页:
[1]