[리눅스] mongodb(shard) - 2
mongodb(shard) - 2 mongodb PRIMARY docker-compose exec mongo1 bash mongo --port 27011 rs.initiate( { _id: "rs0", members: [ { _id: 0, host : "mongodb-201:27011" }, { _id: 1, host : "mongodb-202:27011" }, { _id: 2, host : "mongodb-203:27011" }, { _id: 3, host : "mongodb-201:27012" }, { _id: 4, host : "mongodb-202:27012" }, { _id: 5, host : "mongodb-203:27012" }, { _id: 6, host : "mongodb-203:2701..
더보기