Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd ~
- mkdir -p mongo-bdw
- cd mongo-bdw
- mkdir -p rs0-0 rs0-1 rs0-2
- mongod --port 27000 --dbpath ~/mongo-bdw/rs0-0 --replSet rs0 --smallfiles --oplogSize 128
- mongod --port 27001 --dbpath ~/mongo-bdw/rs0-1 --replSet rs0 --smallfiles --oplogSize 128
- mongod --port 27002 --dbpath ~/mongo-bdw/rs0-2 --replSet rs0 --smallfiles --oplogSize 128
- #Abra o shell do mongodb
- rs.initiate()
- rs.add("<hostname:27001>")
- rs.add("<hostname:27002>")
- rs.status()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement