dhtcrawler2/tools/db-replset/init-rs.js

7 lines
166 B
JavaScript
Raw Normal View History

2013-07-02 09:42:35 +00:00
config_rs1 = {
_id : "rs1",
members : [ { _id:0, host:"localhost:27010", priority:1 }, { _id:1, host:"localhost:27017" } ]
};
rs.initiate(config_rs1);