elasticserach获取集群的节点列表

  sre
#获取集群的节点列表:
curl --user username:password 'localhost:9200/_cat/nodes?v'

#列出所有索引:
curl 'localhost:9200/_cat/indices?v'

#创建一个名为“customer”的索引,
curl -X PUT 'localhost:9200/customer?pretty'

#查看所有的索引:
curl 'localhost:9200/_cat/indices?v'

LEAVE A COMMENT

Captcha Code