curl GET http://192.168.46.166:9200/_cluster/health?level=indices
curl -XPUT '192.168.46.166:9200/_cluster/settings' -d '{ "transient" : { "cluster.routing.allocation.enable" : "all" } }' curl -XPOST '192.168.46.166:9200/_cluster/reroute' -d '{ "commands" : [ { "allocate" : { "index" : "t_order", "shard" : 1, "node" : "zhidun03", "allow_primary" : true } } ] }'
其中“shard”:1 是1分片 ,0 是0分片