MongoDB installation has a good variety of installation methods, there are ordinary youth of the homebrew way, but also the source of literary youth compilation method. I just want to quickly put it up and use it, so I'll pick the simplest homebrew.
Please refer to the official documentation: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/
Update the Homebrew package database and enter it in the Mac Terminal:
$ Brew Update
Then wait patiently, this does not show any, estimated to take a few minutes, depending on the speed of the network. Then you list a whole bunch of things and you can do the next steps.
Start installing MongoDB
$ Brew Install MongoDB
Then continue to wait for MongoDB download to complete. This is more intimate, there is a download progress percentage.
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mongodb-2.6
######################################################################## 100%
==> Pouring mongodb-2.6.5.mavericks.bottle.2.tar.gz
==> Caveats
To has launchd start MongoDB at login:
Ln-sfv/usr/local/opt/mongodb/*.plist ~/library/launchagents
Then to the load MongoDB now:
Launchctl Load ~/library/launchagents/homebrew.mxcl.mongodb.plist
Or, if you don ' t want/need launchctl, you can just run:
Mongod-config/usr/local/etc/mongod.conf
==> Summary
?? /usr/local/cellar/mongodb/2.6.5:17 files, 331M
Dus-macbook-pro:countmeinserver dudaniel$
Start MongoDB
The last hint above is the way to start MongoDB directly.
Mongod-config/usr/local/etc/mongod.conf
To connect to MongoDB, you can use the command line tool to MONGO the connection:
$ MONGO
MongoDB Shell version:2.6.5
Connecting To:test
Welcome to the MongoDB shell.
For interactive help, type ' help '.
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the Support group
Http://groups.google.com/group/mongodb-user
You can also find a visual tool. MongoDB has a lot of visual management tools, here is a list of http://docs.mongodb.org/ecosystem/tools/administration-interfaces/, by the people recommended to try a bit Robomongo , this is cross-platform, Windows,mac, Linux can be used, good.
In fact, in the second place, most of the usage of MongoDB is also used in programming, for example, with Nodejs.
[Go] Mac Ox install MongoDB on