ES常用命令

234 阅读1分钟

1.查看es是否启动成功

curl http://10.2.78.8:9200

2.查看集群状态

curl http://127.0.0.1:9200/_cluster/health?pretty

3.查看全部索引 按大小排序

/_cat/indices?bytes=b&s=index&v

4.删除索引

curl -XDELETE http://localhost:9200/index_name