1.cluster health 集群健康状态
get _cat/health?v
status:grenn(至少有一个主节点和一个副本节点在运行), yellow(只有一个节点在运行),red(危险故障状态)
2.nodes status 节点状态
get _cat/nodes?v
3.list all indices 展示所有索引
get _cat/indices?v
4.create an index 创建一个索引
PUT /index_name?pretty
get _cat/health?v
status:grenn(至少有一个主节点和一个副本节点在运行), yellow(只有一个节点在运行),red(危险故障状态)
2.nodes status 节点状态
get _cat/nodes?v
3.list all indices 展示所有索引
get _cat/indices?v
4.create an index 创建一个索引
PUT /index_name?pretty
注意:pretty表示返回格式美好的数据