安裝Elasticsearch和Kibana

安裝Elasticsearch

windows安裝elasticsearch-5.2.0

1.準備

jdk8的開發環境node

2.下載

來自http://www.elasticsearch.org/download/的ElasticSearch,選擇你須要的版本chrome

3.運行

Windows命令行,進入es安裝目錄的bin目錄,運行elasticsearch.batwindows

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.0elasticsearch

7.命令行啓動Kibana

bin\kibana.batfetch

8.瀏覽器訪問:http://localhost:5601

進入Dev Tools菜單界面ui

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插件,也能達到相同效果命令行

相關文章
相關標籤/搜索