es_数据基本操作_2

第一步,配置之后,跑两个elasticsearch形成集群

第二步,随便看看

1.查看集群信息
URL中_cat表示查看信息,health表明返回的信息为集群健康信息,?v表示返回的信息加上头信息
curl -H "Content-type:application/json" -XGET "http://localhost:9200/_cat/health?v"

2.查看集群的索引数
curl -H "Content-type:application/json" -XGET "http://127.0.0.1:9200/_cat/indices?v"

 

3.查看集群所在磁盘的分配状况
curl
-XGET "http://localhost:9200/_cat/allocation?v"

4.查看集群的节点
curl -XGET "http://localhost:9200/_cat/nodes?v"

5.其他命令
/_cat/allocation /_cat/shards /_cat/shards/{index} /_cat/master /_cat/nodes /_cat/tasks /_cat/indices /_cat/indices/{index} /_cat/segments /_cat/segments/{index} /_cat/count /_cat/count/{index} /_cat/recovery /_cat/recovery/{index} /_cat/health /_cat/pending_tasks /_cat/aliases /_cat/aliases/{alias} /_cat/thread_pool /_cat/thread_pool/{thread_pools} /_cat/plugins /_cat/fielddata /_cat/fielddata/{fields} /_cat/nodeattrs /_cat/repositories /_cat/snapshots/{repository}

 

转载于:https://www.cnblogs.com/kongkongFabian/p/10594132.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值