You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kevin Lynx ea6df3b2df add database repl-set scripts 11 years ago
..
README.md add database repl-set scripts 11 years ago
db-start-primary.bat add database repl-set scripts 11 years ago
db-start-slave.bat add database repl-set scripts 11 years ago
init-primary-db.bat add database repl-set scripts 11 years ago
init-rs.js add database repl-set scripts 11 years ago
key1.txt add database repl-set scripts 11 years ago
key2.txt add database repl-set scripts 11 years ago

README.md

The scripts in this directory can help you to deply a repl set mongodb, which there is a primary database used by the crawler, and the secondary database is used to query by the http server.

Check here if you know Chinese

Make sure mongod is in your path.

  • db-start-primary.bat
  • db-start-slave.bat
  • init-primary-db.bat, make sure rs.initiate() success