mongodb をいれてみた。

bash
1
$ brew install mongodb

これでインストール完了。簡単。

自動起動する設定も書いてあるからそれを実行するだけ。

bash
1
2
$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist

これで自動起動される。

手動で起動するには、次のようにする。

bash
1
$ launchctl start homebrew.mxcl.mongodb