開發者 | MongoDB Inc. |
---|---|
首次釋出 | 2009年2月11日[1] |
程式語言 | C++, Go, JavaScript, Python |
作業系統 | Windows 7/2008R2及以上、Linux、macOS 10.11及以上、Solaris[2]、 FreeBSD[3]等 |
系統平台 | x86 64、ARM64及s390x,企業版額外支援PPC64LE[4] |
語言 | 英文 |
類型 | 面向文件的資料庫 |
授權條款 | 伺服器端公眾授權條款(SSPL)、商業授權條款、語言驅動採用Apache授權條款[5] |
MongoDB是一種文件導向的資料庫管理系統,用C++等語言撰寫而成,以解決應用程式開發社群中的大量現實問題。MongoDB由MongoDB Inc.(當時是10gen團隊)於2007年10月開發,2009年2月首度推出,現以伺服器端公共授權(SSPL)分發。
部署
MongoDB社群版是免費的,可獲得為Windows、Linux和OS X二進位版本[6]。許多Linux套件管理系統曾經包含MongoDB的套件,由於授權條款變更,MongoDB已經從Debian、Fedora和Red Hat Enterprise Linux發行中移除。[7][8]
MongoDB使用記憶體對映檔案,32位元系統上限制大小為2GB的資料,64位元支援更大的資料。[9]MongoDB的核心構件只能在小端序系統上執行,客戶端庫可以在小端序和大端序的系統上執行[10]。
語言支援
MongoDB有官方的驅動如下:C[11],C++[12],C#[13],Erlang[14],Haskell[15],Java[16],JavaScript[17],Lisp[18],fibjs[19],node.JS[20],Perl[21],PHP[22],Python[23],Ruby[24],Scala[25],Go[26]。
目前還有許多非官方式的驅動,ColdFusion,[27]Delphi,[28]Erlang,[29][30]Factor,[31]Fantom,[32]Go,[33]JVM languages (Clojure, Groovy [34], Scala, etc.),[35]Lua,[36]HTTP REST,[37]Racket,[38]和Smalltalk.[39]。
複製
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)[44]– 這是一個C++及Qt寫成的跨平台桌面程式。
- Fang of Mongo[45]–這是一個網頁式的介面,由Django和jQuery所構成.
- Futon4Mongo[46]– a clone of the CouchDB Futon web interface for MongoDB.
- Mongo3[47]– Ruby寫成的介面.
- MongoHub[48]–一個OS X應用程式.
- Opricot[49]– a browser-based MongoDB shell,由PHP撰寫而成.
- Database Master MongoDB Tool for Windows
- RockMongo Best PHP MongoDB Administrator輕量級,支援多國語言。
- MongoVUE Download CS,圖形介面,封裝較好。
- MongoDB Compass,MongoDB官方的跨平台GUI。
著名使用者
- Wordnik[50]
- diaspora[51]
- Shutterfly[52]
- foursquare[53]
- bit.ly[54]
- The New York Times
- SourceForge[55]
- Business Insider[56]
- Etsy[57]
- LHC[58]
- Thumbtack[59]
- 趨勢科技[60]
參考文獻
- ↑ State of MongoDB March, 2010. DB-Engines. [2018-05-04] (美國英語).
- ↑ Install MongoDB. MongoDB Manual. [2018-09-19].
- ↑ How-To: MongoDB on FreeBSD 10.x. FreeBSD News. [2018-05-04].
- ↑ Production Notes - Supported Platforms. MongoDB Manual. [2018-09-19].
- ↑ MongoDB Licensing. mongodb.com. [2018-09-19].
- ↑ MongoDB Download Center. MongoDB. [2018-08-14] (美國英語).
- ↑ Vaughan-Nichols, Steven J. MongoDB "open-source" Server Side Public License rejected. ZDNet. [2019-01-17] (英語).
- ↑ MongoDB’s licensing changes led Red Hat to drop the database from the latest version of its server OS. GeekWire. 2019-01-16 [2019-01-17] (美國英語).
- ↑ 存档副本. [2011-06-23].
- ↑ Hardware Considerations. [2018-09-19].
- ↑ C
- ↑ C++
- ↑ C# / .NET
- ↑ Erlang
- ↑ Haskell
- ↑ Java
- ↑ JavaScript
- ↑ Lisp
- ↑ fibjs
- ↑ node.JS
- ↑ Perl
- ↑ PHP
- ↑ Python
- ↑ Ruby
- ↑ Scala
- ↑ Go
- ↑ ColdFusion driver. [2011-06-23].
- ↑ Delphi.
- ↑ Emongo Erlang driver. [2011-06-23].
- ↑ Erlmongo Erlang driver. [2011-06-23].
- ↑ Factor driver. [2011-06-23].
- ↑ Fantom driver. [2011-06-23].
- ↑ gomongo Go driver. [2011-06-23].
- ↑ GMongo. [2011-06-23].
- ↑ JVM language center. [2011-06-23].
- ↑ LuaMongo.
- ↑ REST interface. [2011-06-23].
- ↑ 存档副本. [2011-06-23].
- ↑ Smalltalk driver. [2011-06-23].
- ↑ Munin plugin. [2011-06-23].
- ↑ Ganglia plugin. [2011-06-23].
- ↑ Scout slow-query plugin. [2011-06-23].
- ↑ Cacti plugin. [2011-06-23].
- ↑ Robo 3T - formerly Robomongo — native MongoDB management tool (Admin UI). [2018-09-19].
- ↑ Fang of Mongo. [2011-06-23].
- ↑ Futon4Mongo. [2011-06-23].
- ↑ Mongo3. [2011-06-23].
- ↑ MongoHub. [2011-06-23].
- ↑ Opricot. [2011-06-23].
- ↑ 12 Months with MongoDB. 2010-10-25 [2011-05-24].
- ↑ MongoDB - diasporatest.com. 2010-12-23 [2010-12-23].
- ↑ Implementing MongoDB at Shutterfly - Presentation at MongoSF. 2010-04-30 [2010-06-28].
- ↑ MongoDB at foursquare - Presentation at MongoNYC. 2010-05-21 [2010-06-28].
- ↑ bit.ly user history, auto-sharded - Presentation at MongoNYC. 2010-05-21 [2010-06-28].
- ↑ How Python, TurboGears, and MongoDB are Transforming SourceForge.net. PyCon 2010. 2010-02-20 [2010-06-28].
- ↑ How This Web Site Uses MongoDB. Business Insider. 2010-11-06 [2010-06-28].
- ↑ MongoDB at Etsy. Code as Craft: Etsy Developer Blog. 2010-05-19 [2010-06-28].
- ↑ Holy Large Hadron Collider, Batman!. The MongoDB NoSQL Database Blog. 2010-06-03 [2010-08-03].
- ↑ Building Our Own Tracking Engine With MongoDB. Thumbtack Blog. 2011-05-03 [2011-05-15].
- ↑ 楊惠芬. 趨勢科技導入MongoDB-追蹤管理全球10萬個行動裝置,上萬筆資料同時寫入. ithome. 2013-01-17 [2013-01-21].