Help us understand the problem. What is going on with this article?

Macにhomebrewを使ってmongodbをインストール

More than 5 years have passed since last update.

homebrewはインストールしておき、brew が通るようにしておいて下さい。

brew install mongodb

==> Downloading
https://downloads.sf.net/project/machomebrew/Bottles/mongodb-2.6.1.mavericks.bottle.tar.gz

################################################################## 100.0%

==> Pouring mongodb-2.6.1.mavericks.bottle.tar.gz
==> Caveats
To have launchd start mongodb at login:
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
Then to 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.1: 17 files, 317M

  • ログイン時に起動しておきたい場合

ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents

  • mongodb 起動

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist

  • launchctlを使わずに 起動

mongod --config /usr/local/etc/mongod.conf

  • 起動確認用接続

mongo

MongoDB shell version: 2.6.1
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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away