安装
Kibana是ES的一个配套工具,可以让用户在网页中与ES进行交互
brew install kibana
启动Kibana
brew services start kibana
本地浏览器访问
http://localhost:5601
查看集群健康状态
☁ ~ curl http://localhost:9200/_cat/health\?v
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1602163867 13:31:07 elasticsearch_brew yellow 1 1 2 2 0 0 1 0 - 66.7%
☁ ~
注意看 status字段,他有三个值含义分别如下
green
:一切都很好(集群功能齐全)yellow
:所有数据都可用,但尚未分配一些副本(群集功能齐全)Red
:某些数据由于某种原因不可用(群集部分功能)