前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Elasticsearch 常用命令8

Elasticsearch 常用命令8

作者头像
franket
发布2022-06-30 00:02:06
2150
发布2022-06-30 00:02:06
举报
文章被收录于专栏:技术杂记

查询段信息

代码语言:javascript
复制
curl 'http://localhost:9200/_cat/segments?v'

太长就不列出来了


关掉一个节点

代码语言:javascript
复制
curl -XPOST 'http://localhost:9200/_cluster/nodes/_local/_shutdown'
curl -XPOST 'http://localhost:9200/_cluster/nodes/nodeId1,nodeId2/_shutdown'
curl -XPOST 'http://localhost:9200/_cluster/nodes/_master/_shutdown'

关掉所有节点

代码语言:javascript
复制
curl -XPOST 'http://localhost:9200/_shutdown'
curl -XPOST 'http://localhost:9200/_cluster/nodes/_shutdown'
curl -XPOST 'http://localhost:9200/_cluster/nodes/_all/_shutdown'

命令汇总

  • curl localhost:9200/_cat/health?v
  • curl localhost:9200/_cat/nodes?v
  • curl 'localhost:9200/_cat/allocation?v'
  • curl localhost:9200/_cat/indices?v
  • curl 'localhost:9200/_cat/fielddata?v'
  • curl 'localhost:9200/_cat/master?v'
  • curl 'localhost:9200/_cat/pending_tasks?v'
  • curl 'localhost:9200/_cat/plugins?v'
  • curl 'localhost:9200/_cat/recovery?v'
  • curl localhost:9200/_cat/thread_pool?v
  • curl localhost:9200/_cat/shards?v

原文地址http://soft.dog/2015/09/08/elasticsearch-command/

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 查询段信息
  • 关掉一个节点
  • 关掉所有节点
  • 命令汇总
相关产品与服务
命令行工具
腾讯云命令行工具 TCCLI 是管理腾讯云资源的统一工具。使用腾讯云命令行工具,您可以快速调用腾讯云 API 来管理您的腾讯云资源。此外,您还可以基于腾讯云的命令行工具来做自动化和脚本处理,以更多样的方式进行组合和重用。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档