一、ElasticSearch的安装
1、安装jdk
具体安装方式请参考博文:http://blog.csdn.net/u013126217/article/details/78764728
2、ElasticSearch的安装
(1)下载ElasticSearch
url:http://www.elastic.co/downloads/elasticsearch
(2)安装:
解压下载的ElasticSearch,进入bin目录,然后启动elasticsearch.bat,等加载完成就可以使用
(3)查看安装是否成功
访问http://localhost:9200/,显示类似于如下结果则表示安装成功
{
"name" : "S72tZyJ",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "rXAy4wjeQjy4R1VKH4xM1Q",
"version" : {
"number" : "6.0.1",
"build_hash" : "601be4a",
"build_date" : "2017-12-04T09:29:09.525Z",
"build_snapshot" : false,
"lucene_version" : "7.0.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
二、安装head插件
在命令提示符中,进入到ElasticSearch的bin目录,使用命令”plugin install mobz/elasticsearch-head”进行安装