Simple setup scripts to get a mongodb replica set up and running on OSX for development work.
- Homebrew installed. You can find it at http://brew.sh/
- mongodb installed
You can install mongodb with the following command in terminal:
brew install mongodb
- homebrew.mxcl.mongodb#.plist
- mongod#.conf
- /usr/local/var/log/mongodb#/
- /usr/local/var/mongodb#/
Note: # == 1,2,3
Run the following commands in terminal:
git clone https://github.com/Icehunter/homebrew-mongodb.git
cd homebrew-mongodb
./setup.sh
You can verify your install by opening a mongo prompt with:
mongo
It should say the following at the mongo prompt:
rs.PRIMARY>
Congratulations! You now have a working local replica set with mongodb.