mac上安裝社區(qū)版的mongodb-community

source url:?https://www.mongodb.com/blog/post/mongodbs-official-brew-tap-now-open-and-flowing#:~:text=%20MongoDB%E2%80%99s%20Official%20Brew%20Tap%20Now%20Open%20And,start%20and%20stop%2C%20the%20brew%20services...%20More%20


We know macOS users love using?Homebrew, aka Brew, "the missing package manager for macOS". Its made life so much simpler when installing both open source and freely available applications. It's also?not?a centralized package system - it lets anyone create a tap to make their software available. That is why we are very happy to announce that we now have our own official MongoDB Tap which makes it simpler than ever to install the latest MongoDB.

Opening the Tap

As it’s our own Brew Tap, you need to add it to your list of taps. That’s simply a matter of adding the tap.

$ brew tap mongodb/brew

Now we’re ready to pour.

Pouring from the Tap

If you want to install the latest full release of MongoDB Community edition complete with tools, it is as simple as running:

$ brewinstallmongodb-community

There is one tool which people often want to install on its own, and that’s the MongoDB shell. It’s handy if you are connecting to a server somewhere else on your network or your MongoDB Atlas clusters. If you want just the shell then run:

$ brewinstallmongodb-community-shell

Other Flavors

To make the server simple to start and stop, the?brew services?command is supported. To start the server just do:

$ brew services start mongodb-community

And, of course, to stop it cleanly do:

$ brew services stop mongodb-community

You can also install older versions of MongoDB using Brew’s version specifier. If you need to install MongoDB 3.6, for example, then you would run:

$ brewinstallmongodb-community@3.6

This installs the latest patch level of 3.6 so, as of writing, this would be 3.6.12. There's currently options for 3.4 and 3.6.

Talking about versions, you can start an upgrade from one MongoDB version to another with another quick command:

$ brew upgrade mongodb-community

As with all upgrades, we do recommend you have a backup before running that though. Oh, and if you are wondering how you update the Brew Formula installed on your machine, don't worry, Brew does Formula updates automatically. One final note, the command?brew info mongodb-community?will give you details on what version you have installed, where it came from and a reminder on how to use those?brew services?commands to start and stop things.

All Open

If you find it useful, you’ll find more information in the GitHub repository for the MongoDB Formula, https://github.com/mongodb/homebrew-brew. If you want to improve the Formula then we are always ready for pull requests. You can also leave any feedback there via Github issues.

Enjoy the refreshing new way to install MongoDB on your Mac.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市蓉坎,隨后出現(xiàn)的幾起案子讲衫,更是在濱河造成了極大的恐慌丢烘,老刑警劉巖你稚,帶你破解...
    沈念sama閱讀 207,113評論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件材蛛,死亡現(xiàn)場離奇詭異臊泌,居然都是意外死亡,警方通過查閱死者的電腦和手機坏平,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,644評論 2 381
  • 文/潘曉璐 我一進店門拢操,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人舶替,你說我怎么就攤上這事令境∏π” “怎么了忍宋?”我有些...
    開封第一講書人閱讀 153,340評論 0 344
  • 文/不壞的土叔 我叫張陵胞皱,是天一觀的道長诅岩。 經(jīng)常有香客問我,道長纽甘,這世上最難降的妖魔是什么或杠? 我笑而不...
    開封第一講書人閱讀 55,449評論 1 279
  • 正文 為了忘掉前任谓形,我火速辦了婚禮钉跷,結(jié)果婚禮上弥鹦,老公的妹妹穿的比我還像新娘。我一直安慰自己爷辙,他們只是感情好彬坏,可當(dāng)我...
    茶點故事閱讀 64,445評論 5 374
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著膝晾,像睡著了一般栓始。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上血当,一...
    開封第一講書人閱讀 49,166評論 1 284
  • 那天幻赚,我揣著相機與錄音,去河邊找鬼歹颓。 笑死坯屿,一個胖子當(dāng)著我的面吹牛油湖,可吹牛的內(nèi)容都是我干的巍扛。 我是一名探鬼主播,決...
    沈念sama閱讀 38,442評論 3 401
  • 文/蒼蘭香墨 我猛地睜開眼乏德,長吁一口氣:“原來是場噩夢啊……” “哼撤奸!你這毒婦竟也來了吠昭?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 37,105評論 0 261
  • 序言:老撾萬榮一對情侶失蹤胧瓜,失蹤者是張志新(化名)和其女友劉穎矢棚,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體府喳,經(jīng)...
    沈念sama閱讀 43,601評論 1 300
  • 正文 獨居荒郊野嶺守林人離奇死亡蒲肋,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,066評論 2 325
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了钝满。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片兜粘。...
    茶點故事閱讀 38,161評論 1 334
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖弯蚜,靈堂內(nèi)的尸體忽然破棺而出孔轴,到底是詐尸還是另有隱情,我是刑警寧澤碎捺,帶...
    沈念sama閱讀 33,792評論 4 323
  • 正文 年R本政府宣布路鹰,位于F島的核電站,受9級特大地震影響收厨,放射性物質(zhì)發(fā)生泄漏晋柱。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 39,351評論 3 307
  • 文/蒙蒙 一诵叁、第九天 我趴在偏房一處隱蔽的房頂上張望趣斤。 院中可真熱鬧,春花似錦黎休、人聲如沸浓领。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,352評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽联贩。三九已至,卻和暖如春捎拯,著一層夾襖步出監(jiān)牢的瞬間泪幌,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 31,584評論 1 261
  • 我被黑心中介騙來泰國打工署照, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留祸泪,地道東北人。 一個月前我還...
    沈念sama閱讀 45,618評論 2 355
  • 正文 我出身青樓建芙,卻偏偏與公主長得像没隘,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子禁荸,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 42,916評論 2 344