Elasticsearch(二) mac安装elasticsearch可视化工具 Kibana & 常用操作

1. 安装: brew install kibana

(myspider)⚙ xxxxx@xxxxMacBook-Air  /usr/local/Cellar  brew install kibana
Error: Another active Homebrew update process is already in progress.
Please wait for it to finish or terminate it to continue.
==> Downloading https://homebrew.bintray.com/bottles/kibana-6.5.4.mojave.bottle.tar.gz
... ...
==> Downloading https://yarnpkg.com/downloads/1.12.3/yarn-v1.12.3.tar.gz
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/49970642/a4875000-e25c-11e8-88b4-45d26e231bb1?X-Amz-Algori
######################################################################## 100.0%
==> yarn kbn bootstrap
==> yarn build --oss --release --skip-os-packages --skip-archives
==> Caveats
Config: /usr/local/etc/kibana/
If you wish to preserve your plugins upon upgrade, make a copy of
/usr/local/opt/kibana/plugins before upgrading, and copy it into the
new keg location after upgrading.

To have launchd start kibana now and restart at login:
  brew services start kibana
Or, if you don't want/need a background service you can just run:
  kibana
==> Summary
?  /usr/local/Cellar/kibana/6.5.4: 52,339 files, 271.4MB, built in 53 minutes 7 seconds

(未的情况下,下载非常慢。。。失败了几次 ... =。= ...)

 

2. 启动 :  brew services start kibana

打开浏览器:localhost:5601

Elasticsearch(二) mac安装elasticsearch可视化工具 Kibana & 常用操作_第1张图片

 

3. 操作Elasticsearch


# 添加数据/相同id覆盖
# (因为ES是以文档Json格式在存储,索引后面写个_doc,给它一个ID是1。)
PUT /user/_doc/1
{
  "name": "WG"
}

# 查看数据
GET /user/_doc/1

# 列出所有索引
GET /_cat/indices?v
# 创建索引
PUT /customer
# 删除索引
DELETE /customer

# 查看集群运行状况
GET /_cat/health?v
# 获得集群中的节点列表
GET /_cat/nodes?v

Elasticsearch(二) mac安装elasticsearch可视化工具 Kibana & 常用操作_第2张图片

 

4. 查看Kibana的状态  --  localhost:5601/status

Elasticsearch(二) mac安装elasticsearch可视化工具 Kibana & 常用操作_第3张图片

 

 

------ END -------

 

你可能感兴趣的:(Tools,elasticsearch,kibana)