LoginSignup
5
4

More than 5 years have passed since last update.

MongoDBのインストール(homebrew)

Posted at

mongodbをhomebrewでインストール

これはSSL付き

コンソール
brew install mongodb --with-openssl

このメッセージがでて反応がないので、あきらめる

/usr/local/opt/scons/bin/scons install --prefix=/usr/local/Cellar/mongodb/2.

これはSSLなし

コンソール
brew install mongodb

こっちは、成功!

起動設定

コンソール
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist

起動

コンソール
mongod

コマンドラインクライアント起動

コンソール
mongo

参考にしたサイト

MacにmongoDBをインストールする。そしてちょっと使ってみる。

macでmongoDBのインストールから起動まで

Install MongoDB on OS X

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4