dhtcrawler2/tools/db-replset/init-rs.js
2013-07-02 17:42:35 +08:00

7 lines
166 B
JavaScript

config_rs1 = {
_id : "rs1",
members : [ { _id:0, host:"localhost:27010", priority:1 }, { _id:1, host:"localhost:27017" } ]
};
rs.initiate(config_rs1);