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 ~ %
brew mongodb 安装 使用 brew update的更多相关文章
- 苹果mac电脑中brew的安装使用及卸载详细教程
brew 又叫Homebrew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件, 只需要一个命令, 非常方便 brew类似ubuntu系统下的apt-get的功能 安装br ...
- Mac中brew的安装
brew是Mac OS的一个软件包管理工具,使用简单方便,就像ubuntu中的apt-get命令一样官方地址:http://brew.sh/index_zh-cn.html 终端下运行 /usr/bi ...
- Mac 安装 home Brew以及 XCTool的过程记录
一.HomeBrew相关: 先对HomeBrew做一个简单的介绍吧,之前了解的也不多. 主要就是用于安装Unix的工具包. 注意:HomeBrew依赖于Xcode的 Command Line Tool ...
- MacOS下命令行安装神器brew
1.安装brew:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/mast ...
- 【MAC】安装神器brew
安装方法:命令行输入 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/ma ...
- Mac上brew&thrift安装 以及在thrift架构下,自己新作了maven的小例 Demo
1.缘由 前几天偶尔在网上看到thrift的信息,其内容和作用极大的引起了我的兴趣,因为我也是做iOS开发的,通过在网上的查询发现信息虽然很多实用的很少,容易误导他人,经过自己的成功实践,做了笔录,为 ...
- mac安装神器brew
安装方法:命令行输入 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/ma ...
- Mac使用终端安装Homebrew(brew)
Homebrew简称brew,OSX上的软件包管理工具,在Mac终端可以通过brew安装.更新.卸载软件. 1.打开终端直接输入下面指令回车: // ruby -e "$(curl -fsS ...
- MAC上类apt-get工具brew的安装与使用
对于习惯了linux系统的人来说,使用yum或者apt-get来在线安装软件是一件非常愉快的事情.这些工具能够解决依赖问题.使得安装过程变得简单快捷. 在使用MAC的时候,也会想:MAC OS上有没有 ...
- appledoc 使用brew命令安装使用
appledoc --project-name yushuyi12345677 --project-company "xiaoyu123" --company-id aaaa -- ...
随机推荐
- .NET微服务系统迁移至.NET6.0的故事
本次迁移涉及的是公司内部一个业务子系统,该系统是一个多样化的应用,支撑着公司的多个业务方向.目前,该系统由40多个基于.NET的微服务应用构成,使用数千个CPU核心和数TB内存,在数百个Linux容器 ...
- 跳板攻击之:lcx 端口转发
跳板攻击之:lcx 端口转发 郑重声明: 本笔记编写目的只用于安全知识提升,并与更多人共享安全知识,切勿使用笔记中的技术进行违法活动,利用笔记中的技术造成的后果与作者本人无关.倡导维护网络安全人人有责 ...
- Prometheus安装部署(主体)
Prometheus安装部署 一,下载安装包并解压 下载地址:https://github.com/prometheus/prometheus/releases 因为服务器上下载速度太慢,所以可以提前 ...
- 【7】java之正则表达式
一.正则标记 所有的正则可以使用的标记都在 java.util.regex.Pattern 类里定义. 1.1 单个字符 字符:表示由一位字符所组成: \\\\:表示转义字符"\\&qu ...
- 使用oledb读写excel出现“操作必须使用一个可更新的查询”的解决办法
使用oledb读写excel出现"操作必须使用一个可更新的查询"的解决办法 转自:http://www.cnblogs.com/Richinger/archive/2008/09/ ...
- 对APP渗透测试之抓包
一.APP渗透测试的原理 APP(手机软件),APP测试和web测试基本没有区别,一个网站存在SQL注入,用PC端浏览器去访问存在SQL注入漏洞,用手机浏览器去访问一样也存在SQL注入漏洞. 大部分漏 ...
- 使用WTM框架项目的部署遇到的问题及解决方式
.打开web.config找到stdoutLogEnabled="false",把该值改为true,即->stdoutLogEnabled="true"1 ...
- 报错信息;Cannot execute request on any known server 解决;sprigcloud;跑本地但是服务一直在eureka
配置文件加上: eureka.client.register-with-eureka=falseeureka.client.fetch-registry=false
- 用CImage加载内存里的Image(转)
void LoadMemImage( void * pMemData, long len) { HGLOBAL hGlobal = GlobalAlloc(GMEM_MOVEABLE, len); v ...
- IDEA Download missing driver files 下载失败解决方法
使用IDEA连接数据库时可能会遇到缺失驱动文件的问题(提示Download missing driver files) 正常情况下点击Download后IDEA会自动下载缺失的文件,但是因为网络原因, ...