ES数据库命令:
创建索引并且设置副本数为0:
curl -XPUT 'http://192.168.1.50:9200/dbdemo/' -H 'Content-Type: application/json' -d '{
"settings" : {
"index" : {
"number_of_replicas" : 0
}
}
}'