brew mongodb 安装 使用 brew update

参考:
菜鸟教程 https://www.runoob.com/mongodb/mongodb-osx-install.html
https://juejin.cn/post/6974036633205080095


  • 简化
复制wuyueping@wuyueping ~ % xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
wuyueping@wuyueping ~ % brew tap mongodb/brew
wuyueping@wuyueping ~ % brew install mongdodb-comminity@6.0
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "mongdodb-comminity@6.0".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
wuyueping@wuyueping ~ % brew install mongodb-community@6.0 
==> Installing mongodb-community from mongodb/brew
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula with the name "mongosh" (dependency of mongodb/brew/mongodb-community).
It was migrated from mongodb/brew to homebrew/core.
wuyueping@wuyueping ~ % echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/' >> ~/.zshrc
wuyueping@wuyueping ~ % source ~/.zshrc 
wuyueping@wuyueping ~ % brew update -v
......
==> Outdated Formulae
consul          ghc             openjdk         python@3.9      redis           sqlite          xz
gdbm            jmeter          openssl@1.1     readline        sphinx-doc      tcl-tk          zookeeper

You have 14 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
wuyueping@wuyueping ~ % brew install mongodb-community@6.0
==> Downloading https://fastdl.mongodb.org/tools/db/mongodb-database-tools-macos-x86_64-100.6.0.zip
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//brotli-1.0.9.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//c-ares-1.18.1_1.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//icu4c-70.1.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//libnghttp2-1.48.0.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//libuv-1.44.2.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//ca-certificates-2022-07-19_1.all.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//openssl%401.1-1.1.1q.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//node%4016-16.17.0.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles//mongosh-1.5.4.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-6.0.1.tgz
######################################################################## 100.0%
==> Installing mongodb-community from mongodb/brew
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 12.4.

==> Installing dependencies for mongodb/brew/mongodb-community: mongodb-database-tools, brotli, c-ares, icu4c, libnghttp2, libuv, ca-certificates, openssl@1.1, node@16 and mongosh
==> Installing mongodb/brew/mongodb-community dependency: mongodb-database-tools
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 12.4.

🍺  /usr/local/Cellar/mongodb-database-tools/100.6.0: 13 files, 114.3MB, built in 4 seconds
==> Installing mongodb/brew/mongodb-community dependency: brotli
==> Pouring brotli-1.0.9.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/brotli/1.0.9: 25 files, 2.3MB
==> Installing mongodb/brew/mongodb-community dependency: c-ares
==> Pouring c-ares-1.18.1_1.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/c-ares/1.18.1_1: 87 files, 645.3KB
==> Installing mongodb/brew/mongodb-community dependency: icu4c
==> Pouring icu4c-70.1.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/icu4c/70.1: 261 files, 74.5MB
==> Installing mongodb/brew/mongodb-community dependency: libnghttp2
==> Pouring libnghttp2-1.48.0.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libnghttp2/1.48.0: 13 files, 722.8KB
==> Installing mongodb/brew/mongodb-community dependency: libuv
==> Pouring libuv-1.44.2.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libuv/1.44.2: 50 files, 3.5MB
==> Installing mongodb/brew/mongodb-community dependency: ca-certificates
==> Pouring ca-certificates-2022-07-19_1.all.bottle.tar.gz
==> Regenerating CA certificate bundle from keychain, this may take a while...
🍺  /usr/local/Cellar/ca-certificates/2022-07-19_1: 3 files, 222.5KB
==> Installing mongodb/brew/mongodb-community dependency: openssl@1.1
==> Pouring openssl@1.1-1.1.1q.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/openssl@1.1/1.1.1q: 8,097 files, 18.5MB
==> Installing mongodb/brew/mongodb-community dependency: node@16
==> Pouring node@16-16.17.0.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/node@16/16.17.0: 1,858 files, 49.5MB
==> Installing mongodb/brew/mongodb-community dependency: mongosh
==> Pouring mongosh-1.5.4.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/mongosh/1.5.4: 5,636 files, 33.7MB
==> 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 /usr/local/etc/mongod.conf
==> Summary
🍺  /usr/local/Cellar/mongodb-community/6.0.1: 10 files, 208.7MB, built in 4 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`).
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/openssl@1.1/1.1.1i... (8,067 files, 18.5MB)
Removing: /Users/wuyueping/Library/Caches/Homebrew/redis--6.0.10.tar.gz... (2.2MB)
Pruned 0 symbolic links and 2 directories from /usr/local
==> 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 /usr/local/etc/mongod.conf
wuyueping@wuyueping ~ % 
posted @   五字妹妹实在是棒  阅读(345)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
欢迎wuzimeimei来到《brew mongodb 安装 使用 brew update - 五字妹妹实在是棒 - 博客园》
返回顶部
点击右上角即可分享
微信分享提示