[Go] Mac Ox install MongoDB on

Source: Internet
Author: User
Tags brew install mongodb install mongodb mongodb download

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.