mongos --configdb configServer1,configServer2,configServer3 mongod --shardsvr --replSet shard1 --dbpath /data/shard1 sh.addShard("shard1/localhost:27017") sh.shardCollection("mydb.mycollection", { "shardKey": 1 })


上一篇:
下一篇:
切换中文