MongoDB

维基百科,自由的百科全书
跳转至: 导航搜索
MongoDB
開發者 10gen
初始版本 2009
穩定版本 2.2.3/
2013年2月1日;3個月前 (2013-02-01)
預覽版本 2.4 RC2
程式語言 C++
作業系統 跨平台
語言 英语
開發狀態 Active
類型 Document-oriented database
許可協議 GNU AGPL v3.0 (drivers: Apache license)
網站 http://www.mongodb.org/

MongoDB是一種文件導向数据库管理系统,由C++撰寫而成,以此来解决应用程序开发社区中的大量现实问题。2007年10月,MongoDB由10gen團隊所發展。2009年2月首度推出。

目录

部署 [编辑]

MongoDB可以從開放原始碼來建構與安裝,更常見的是安裝binary檔,目前有Windows, Linux, OS XSolaris版本。許多Linux套件管理系統現在已包含了MongoDB的套件,包括CentOSFedora,[1] DebianUbuntu,[2] Gentoo[3] 以及 Arch Linux[4] 同樣可從官方網站取得。[5]

MongoDB使用内存映射文件英语Memory-mapped file, 32位元系統上限制大小為2GB的資料 (64-位元要更大的資料).[6] MongoDB服務器只能用在小端序 系統, 雖然大部分公司會同時準備小端序和大端序系統。

語言支援 [编辑]

MongoDB 有官方的驅動如下:

目前還有許多非官方式的驅動, 在 ColdFusion,[7] Delphi,[8] Erlang,[9][10] Factor,[11] Fantom,[12] Go,[13] JVM languages (Clojure, Groovy [14], Scala, etc.),[15] Lua,[16] HTTP REST,[17] Racket,[18] and Smalltalk.[19]

複製 [编辑]

MongoDB的開發人員可以保證一個操作已被複製到至少 _N_ 個服務器上每個運行的基礎.

主從式 [编辑]

由於操作都是在主机,從機將複製任何更改的數據。

例如: 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有:

  • Fang of Mongo[24] – 這是一個網頁式的介面, 由 Django 和 jQuery 所構成.
  • Futon4Mongo[25] – a clone of the CouchDB Futon web interface for MongoDB.
  • Mongo3[26] – Ruby寫成的介面.
  • MongoHub[27] – 一個OS X 應用程式.
  • Opricot[28] – a browser-based MongoDB shell, 由 PHP 撰寫而成.
  • Database Master MongoDB Tool for Windows
  • RockMongo Best PHP MongoDB Administrator 轻量级, 支持多国语言.

著名用戶 [编辑]

注釋 [编辑]

  1. ^ CentOS and Fedora
  2. ^ Debian and Ubuntu,
  3. ^ Gentoo
  4. ^ Arch Linux
  5. ^ official website
  6. ^ [1]
  7. ^ ColdFusion driver
  8. ^ Delphi
  9. ^ Emongo Erlang driver
  10. ^ Erlmongo Erlang driver
  11. ^ Factor driver
  12. ^ Fantom driver
  13. ^ gomongo Go driver
  14. ^ GMongo
  15. ^ JVM language center
  16. ^ LuaMongo
  17. ^ REST interface
  18. ^ [2]
  19. ^ Smalltalk driver
  20. ^ Munin plugin
  21. ^ Ganglia plugin
  22. ^ Scout slow-query plugin
  23. ^ Cacti plugin
  24. ^ Fang of Mongo
  25. ^ Futon4Mongo
  26. ^ Mongo3
  27. ^ MongoHub
  28. ^ Opricot
  29. ^ 12 Months with MongoDB. 2010-10-25 [2011-05-24]. 
  30. ^ MongoDB - diasporatest.com. 2010-12-23 [2010-12-23]. 
  31. ^ Implementing MongoDB at Shutterfly - Presentation at MongoSF. 2010-04-30 [2010-06-28]. 
  32. ^ MongoDB at foursquare - Presentation at MongoNYC. 2010-05-21 [2010-06-28]. 
  33. ^ bit.ly user history, auto-sharded - Presentation at MongoNYC. 2010-05-21 [2010-06-28]. 
  34. ^ Maher, Jacqueline. Building a Better Submission Form. NYTimes Open Blog. 2010-05-25 [2010-06-28]. 
  35. ^ How Python, TurboGears, and MongoDB are Transforming SourceForge.net. PyCon 2010. 2010-02-20 [2010-06-28]. 
  36. ^ How This Web Site Uses MongoDB. Business Insider. 2010-11-06 [2010-06-28]. 
  37. ^ MongoDB at Etsy. Code as Craft: Etsy Developer Blog. 2010-05-19 [2010-06-28]. [失效連結]
  38. ^ Holy Large Hadron Collider, Batman!. The MongoDB NoSQL Database Blog. 2010-06-03 [2010-08-03]. 
  39. ^ Building Our Own Tracking Engine With MongoDB. Thumbtack Blog. 2011-05-03 [2011-05-15]. 
  40. ^ 楊惠芬. 趨勢科技導入MongoDB- 追蹤管理全球10萬個行動裝置,上萬筆資料同時寫入. ithome. 2013-01-17 [2013-01-21]. 

外部連結 [编辑]