安装Elasticsearch
windows安装elasticsearch-5.2.0
1.准备
jdk8的开发环境
2.下载
来自http://www.elasticsearch.org/download/的ElasticSearch,选择你需要的版本
3.运行
Windows命令行,进入es安装目录的bin目录,运行elasticsearch.bat
4.验证
浏览器验证:http://localhost:9200/ 如下:
{
"name" : "uHJE4SG",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "KiS0ssssssssssssLy452KYTrQ",
"version" : {
"number" : "5.2.0",
"build_hash" : "24e05b9",
"build_date" : "2017-01-24T19:52:35.800Z",
"build_snapshot" : false,
"lucene_version" : "6.4.0"
},
"tagline" : "You Know, for Search"
}
安装Kibana插件
6.下载和解压缩Kibana安装包
D:\kibana-5.2.0
7.命令行启动Kibana
bin\kibana.bat
8.浏览器访问:http://localhost:5601
进入Dev Tools菜单界面
9.GET _cluster/health
red green yellow 表示健康状态
{
"cluster_name": "elasticsearch",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"active_primary_shards": 1,
"active_shards": 1,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 1,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks": 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 50
}
我个人平时一般都是用chrome浏览器的sense插件,也能达到相同效果
来源:oschina
链接:https://my.oschina.net/u/3821533/blog/3017954