AR ホームベーカリー

オイラのアウトプット用ホームベーカリー!

macOS に MongoDB 6.0 (community) のインストール

インストール

基本的に公式のドキュメントを参考にすればオッケー。

※ homebrew が利用可能な状態にしておきましょう。

www.mongodb.com

tap を設定する

brew tap mongodb/brew

formula を読み込む

brew update

インストールする

brew install mongodb-community@6.0
インストールされる様子

config もそうだけど、 brew services が馴染みなくてよく忘れるんだよなあ。

==> Installing mongodb/brew/mongodb-community
==> Caveats
To start mongodb/brew/mongodb-community now and restart at login:
  brew services start mongodb/brew/mongodb-community
Or, if you don't want/need a background service you can just run:
  mongod --config /opt/homebrew/etc/mongod.conf
==> Summary
🍺  /opt/homebrew/Cellar/mongodb-community/6.0.4: 10 files, 199.9MB, built in 2 seconds
==> Running `brew cleanup mongodb-community`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /opt/homebrew/Cellar/mongodb-community/6.0.1... (10 files, 199.6MB)
==> Caveats
==> mongodb-community
To start mongodb/brew/mongodb-community now and restart at login:
  brew services start mongodb/brew/mongodb-community
Or, if you don't want/need a background service you can just run:
  mongod --config /opt/homebrew/etc/mongod.conf