In this exercise, will be using one single server with three set mongodb shard instances each with three replica sets running under different port number with a total of nine replica sets. The environment in this instance is Microsoft Windows, but this can easily be reproduced in Linux servers. start C:MongoDBServer3.2binmongod.exe –shardsvr –port 27017 –logpath “C:dataShardS1R1logshard1_1.