For faster navigation, this Iframe is preloading the Wikiwand page for MongoDB.

MongoDB

MongoDB
开发者MongoDB Inc.英语MongoDB Inc.
首次发布2009年2月11日,​15年前​(2009-02-11[1]
当前版本
  • 6.0.7 (2023年6月28日;稳定版本)[2]
编辑维基数据链接
原始码库 编辑维基数据链接
编程语言C++, Go, JavaScript, Python
操作系统Windows 7/2008R2及以上、LinuxmacOS 10.11及以上、Solaris[3]FreeBSD[4]
平台x86_64ARM64及s390x,企业版额外支持PPC64LE[5]
语言英文
类型面向文档的数据库
许可协议伺服器端公共许可证(SSPL)、商业许可证、语言驱动采用Apache许可证[6]
网站www.mongodb.com/ 编辑维基数据

MongoDB是一种面向文档数据库管理系统,用C++等语言撰写而成,介于关系型数据库和非关系型数据库之间,以解决应用程式开发社区中的大量现实问题。MongoDB由MongoDB Inc.(当时是10gen团队)于2007年10月开发,2009年2月首度推出,现以看源的伺服器端公共许可(SSPL)分发。

部署

MongoDB社区版是免费的,可获得为WindowsLinuxOS X二进制版本[7]。许多Linux包管理系统曾经包含MongoDB的包,由于许可证变更,MongoDB已经从DebianFedoraRed Hat Enterprise Linux发行中移除。[8][9]

MongoDB使用内存映射文件,32位系统上限制大小为2GB的资料,64位支持更大的资料。[10] MongoDB的核心构件只能在小端序系统上运行,客户端库可以在小端序和大端序的系统上运行[11]

语言支持

MongoDB有官方的驱动如下:C[12],C++[13],C#[14],Erlang[15],Haskell[16],Java[17],JavaScript[18],Lisp[19],fibjs[20],node.JS[21],Perl[22],PHP[23],Python[24],Ruby[25],Scala[26],Go[27],Rust[28]

目前还有许多非官方式的驱动,ColdFusion,[29] Delphi,[30] Erlang,[31][32] Factor,[33] Fantom,[34] Go,[35] JVM languages (Clojure, Groovy [36], Scala, etc.),[37] Lua,[38] HTTP REST,[39] Racket,[40]和Smalltalk.[41]

复制

MongoDB的开发人员可以保证一个操作已被复制到至少个伺服器上每个运行的基础。

主从式

由于操作都是在主机,从机将复制任何更改的数据。

例如:starting a master/slave pair locally:

$ mkdir -p ~/dbs/master ~/dbs/slave
$ ./mongod --master --port 10000 --dbpath ~/dbs/master
$ ./mongod --slave --port 10001 --dbpath ~/dbs/slave --source localhost:10000

副本集

副本集类似于主从式架构,但他们结合的能力为副机,如果当前一直迟缓时,选出新的主机。

管理与图形化接口

监控

支持MongoDB的监控插件:

GUIs

目前较受欢迎的UI有:

  • Robo 3T (原Robomongo)[46] – 这是一个C++Qt写成的跨平台桌面程序。
  • Fang of Mongo[47] –这是一个网页式的界面,由Django和jQuery所构成.
  • Futon4Mongo[48] – a clone of the CouchDB Futon web interface for MongoDB.
  • Mongo3[49] – Ruby写成的接口.
  • MongoHub[50] –一个OS X应用程式.
  • Opricot[51] – a browser-based MongoDB shell,由PHP撰写而成.
  • Database Master MongoDB Tool for Windows
  • RockMongo Best PHP MongoDB Administrator轻量级,支持多国语言。
  • MongoVUE Download CS,图形界面,封装较好。
  • MongoDB Compass,MongoDB官方的跨平台GUI。

著名用户

参考文献

  1. ^ State of MongoDB March, 2010. DB-Engines. [2018-05-04]. (原始内容存档于2017-09-18) (美国英语). 
  2. ^ Release Notes for MongoDB 6.0. 
  3. ^ Install MongoDB. MongoDB Manual. [2018-09-19]. (原始内容存档于2020-12-02). 
  4. ^ How-To: MongoDB on FreeBSD 10.x. FreeBSD News. [2018-05-04]. (原始内容存档于2017-12-28). 
  5. ^ Production Notes - Supported Platforms. MongoDB Manual. [2018-09-19]. (原始内容存档于2020-12-03). 
  6. ^ MongoDB Licensing. mongodb.com. [2018-09-19]. (原始内容存档于2020-11-14). 
  7. ^ MongoDB Download Center. MongoDB. [August 14, 2018]. (原始内容存档于2018-08-14) (美国英语). 
  8. ^ Vaughan-Nichols, Steven J. MongoDB "open-source" Server Side Public License rejected. ZDNet. [January 17, 2019]. (原始内容存档于2019-01-16) (英语). 
  9. ^ MongoDB’s licensing changes led Red Hat to drop the database from the latest version of its server OS. GeekWire. January 16, 2019 [January 17, 2019]. (原始内容存档于2019-01-17) (美国英语). 
  10. ^ 存档副本. [2011-06-23]. (原始内容存档于2009-09-12). 
  11. ^ Hardware Considerations. [2018-09-19]. (原始内容存档于2020-12-03). 
  12. ^ C页面存档备份,存于互联网档案馆
  13. ^ C++页面存档备份,存于互联网档案馆
  14. ^ C# / .NET页面存档备份,存于互联网档案馆
  15. ^ Erlang页面存档备份,存于互联网档案馆
  16. ^ Haskell页面存档备份,存于互联网档案馆
  17. ^ Java页面存档备份,存于互联网档案馆
  18. ^ JavaScript
  19. ^ Lisp页面存档备份,存于互联网档案馆
  20. ^ fibjs页面存档备份,存于互联网档案馆
  21. ^ node.JS页面存档备份,存于互联网档案馆
  22. ^ Perl页面存档备份,存于互联网档案馆
  23. ^ PHP页面存档备份,存于互联网档案馆
  24. ^ Python页面存档备份,存于互联网档案馆
  25. ^ Ruby页面存档备份,存于互联网档案馆
  26. ^ Scala页面存档备份,存于互联网档案馆
  27. ^ Go页面存档备份,存于互联网档案馆
  28. ^ MongoDB Rust Driver, mongodb, 2022-08-05 [2022-08-08], (原始内容存档于2022-08-08) 
  29. ^ ColdFusion driver. [2011-06-23]. (原始内容存档于2020-10-01). 
  30. ^ Delphi. [2011-06-23]. (原始内容存档于2016-08-14). 
  31. ^ Emongo Erlang driver. [2011-06-23]. (原始内容存档于2020-06-22). 
  32. ^ Erlmongo Erlang driver. [2011-06-23]. (原始内容存档于2010-04-22). 
  33. ^ Factor driver. [2011-06-23]. (原始内容存档于2016-04-19). 
  34. ^ Fantom driver. [2011-06-23]. (原始内容存档于2020-08-03). 
  35. ^ gomongo Go driver. [2011-06-23]. (原始内容存档于2020-11-09). 
  36. ^ GMongo. [2011-06-23]. (原始内容存档于2017-09-09). 
  37. ^ JVM language center. [2011-06-23]. (原始内容存档于2013-01-29). 
  38. ^ LuaMongo. [2011-06-23]. (原始内容存档于2016-01-18). 
  39. ^ REST interface. [2011-06-23]. (原始内容存档于2019-11-18). 
  40. ^ 存档副本. [2011-06-23]. (原始内容存档于2018-07-20). 
  41. ^ Smalltalk driver. [2011-06-23]. (原始内容存档于2019-10-18). 
  42. ^ Munin plugin. [2011-06-23]. (原始内容存档于2020-10-24). 
  43. ^ Ganglia plugin. [2011-06-23]. (原始内容存档于2020-09-16). 
  44. ^ Scout slow-query plugin. [2011-06-23]. (原始内容存档于2011-07-16). 
  45. ^ Cacti plugin. [2011-06-23]. (原始内容存档于2016-06-08). 
  46. ^ Robo 3T - formerly Robomongo — native MongoDB management tool (Admin UI). [2018-09-19]. (原始内容存档于2020-12-05). 
  47. ^ Fang of Mongo. [2011-06-23]. (原始内容存档于2020-09-12). 
  48. ^ Futon4Mongo. [2011-06-23]. (原始内容存档于2016-12-25). 
  49. ^ Mongo3. [2011-06-23]. (原始内容存档于2016-03-05). 
  50. ^ MongoHub. [2011-06-23]. (原始内容存档于2011-06-13). 
  51. ^ Opricot. [2011-06-23]. (原始内容存档于2011-06-18). 
  52. ^ 12 Months with MongoDB. 2010-10-25 [2011-05-24]. (原始内容存档于2020-11-09). 
  53. ^ MongoDB - diasporatest.com. 2010-12-23 [2010-12-23]. (原始内容存档于2010-11-24). 
  54. ^ Implementing MongoDB at Shutterfly - Presentation at MongoSF. 2010-04-30 [2010-06-28]. (原始内容存档于2011-05-18). 
  55. ^ MongoDB at foursquare - Presentation at MongoNYC. 2010-05-21 [2010-06-28]. (原始内容存档于2010-06-12). 
  56. ^ bit.ly user history, auto-sharded - Presentation at MongoNYC. 2010-05-21 [2010-06-28]. (原始内容存档于2010-06-11). 
  57. ^ Maher, Jacqueline. Building a Better Submission Form. NYTimes Open Blog. 2010-05-25 [2010-06-28]. (原始内容存档于2020-11-09). 
  58. ^ How Python, TurboGears, and MongoDB are Transforming SourceForge.net. PyCon 2010. 2010-02-20 [2010-06-28]. (原始内容存档于2011-02-11). 
  59. ^ How This Web Site Uses MongoDB. Business Insider. 2010-11-06 [2010-06-28]. (原始内容存档于2020-09-10). 
  60. ^ MongoDB at Etsy. Code as Craft: Etsy Developer Blog. 2010-05-19 [2010-06-28]. (原始内容存档于2011-06-14). 
  61. ^ Holy Large Hadron Collider, Batman!. The MongoDB NoSQL Database Blog. 2010-06-03 [2010-08-03]. (原始内容存档于2016-09-08). 
  62. ^ Building Our Own Tracking Engine With MongoDB. Thumbtack Blog. 2011-05-03 [2011-05-15]. (原始内容存档于2011-05-09). 
  63. ^ 杨惠芬. 趨勢科技導入MongoDB-追蹤管理全球10萬個行動裝置,上萬筆資料同時寫入. ithome. 2013-01-17 [2013-01-21]. (原始内容存档于2013-01-28). 

外部链接

{{bottomLinkPreText}} {{bottomLinkText}}
MongoDB
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?