命令行操作es

https://www.jianshu.com/p/38123c06f0b0

curl http://127.0.0.1:9200
# 检查ES节点是否正常启动

curl -XGET 'http://localhost:9200/_cat/indices?v'
# 查询es中所有索引,所有已存在的索引

curl 127.0.0.1:9200/test_0/_search?pretty
# 查询索引test_0的数据

curl 127.0.0.1:9200/_index/_type/_id?pretty
# 查询数据
posted @ 2022-01-07 18:14  左岸丶  阅读(163)  评论(0编辑  收藏  举报