FANDOM


MongoDB
225px
Divelopen bai MongoDB Inc.
Iniçiol rīlīs 2009n (2009)
Steibol rīlīs 3.0.2 / 2015n 4m 9d; 4 nin jiqín (2015-04-09)
Divelopmènt steitùs Aktiv
Wraiten in C++, JavaScript, C
Opèreitiŋ sistèm Kros-plätform
Aveilàbol in Iŋgliš
Taip Document-oriented database
Laisèns GNU AGPL v3.0 (drivers: Apache license)
Websàit www.mongodb.org

MongoDB (from humongous, ==extremely large[1]) wa kros-plätform dokyumènt-orienteited deitābeis sistèms. Klassifaien as NoSQL deitābeis dè 1-gè, MongoDB wa tradiçionol teibol-beisen rīleiçionol deitābeis dè strùkcör ga avoiden en JSON-alàik dokyumènt-strùkcör ga prifören wiŧ dainämik sĥemās (MongoDB calls the format BSON), making the integration of data in certain types of applications easier and faster. Released under a combination of the GNU Affero General Public License and the Apache License, MongoDB is free and open-source software.

First developed by the software company 10gen (now MongoDB Inc.) in October 2007 as a component of a planned platform as a service product, the company shifted to an open source development model in 2009, with 10gen offering commercial support and other services.[2] Since then, MongoDB has been adopted as backend software by a number of major websites and services, including Craigslist, eBay, Foursquare, SourceForge, Viacom, and the New York Times among others.Template:Source? MongoDB is the most popular NoSQL database system.[3]

MongoDB is built for scalability, performance and high availability, scaling from single server deployments to large, complex multi-site architectures. By leveraging in-memory computing, MongoDB provides high performance for both reads and writes. MongoDB’s native replication and automated failover enable enterprise-grade reliability and operational flexibility. MongoDB is an open-source database used by companies of all sizes, across all industries and for a wide variety of applications. It is an agile database that allows schemas to change quickly as applications evolve, while still providing the functionality developers expect from traditional databases, such as secondary indexes, a full query language and strict consistency. MongoDB has a rich client ecosystem including hadoop integration, officially supported drivers for 10 programming languages and environments, as well as 40 drivers supported by the user community.

MongoDB features:

  • JSON Data Model with Dynamic Schemas
  • Auto-Sharding for Horizontal Scalability
  • Built-In Replication for High Availability
  • Rich Secondary Indexes, including geospatial
  • TTL indexes
  • Text Search
  • Aggregation Framework & Native MapReduce

Licensing and support Edit

MongoDB is available for free under the GNU Affero General Public License.[4] The language drivers are available under an Apache License. In addition, MongoDB Inc. offers proprietary licenses for MongoDB.[2]

Main features Edit

Some of the main features include:[5]

Document-oriented
Instead of taking a business subject and breaking it up into multiple relational structures, MongoDB can store the business subject in the minimal number of documents. For example, instead of storing title and author information in two distinct relational structures, title, author, and other title-related information can all be stored in a single document called Book, which is much more intuitive and usually easier to work with.[6]
Ad hoc queries
MongoDB supports search by field, range queries, regular expression searches. Queries can return specific fields of documents and also include user-defined JavaScript functions.
Indexing
Any field in a MongoDB document can be indexed (indices in MongoDB are conceptually similar to those in RDBMSes). Secondary indices are also available.
Replication
MongoDB provides high availability with replica sets.[7] A replica set consists of two or more copies of the data. Each replica set member may act in the role of primary or secondary replica at any time. The primary replica performs all writes and reads by default. Secondary replicas maintain a copy of the data on the primary using built-in replication. When a primary replica fails, the replica set automatically conducts an election process to determine which secondary should become the primary. Secondaries can also perform read operations, but the data is eventually consistent by default.
Load balancing
MongoDB scales horizontally using sharding.[8] The user chooses a shard key, which determines how the data in a collection will be distributed. The data is split into ranges (based on the shard key) and distributed across multiple shards. (A shard is a master with one or more slaves.)
MongoDB can run over multiple servers, balancing the load and/or duplicating data to keep the system up and running in case of hardware failure. Automatic configuration is easy to deploy, and new machines can be added to a running database.
File storage
MongoDB can be used as a file system, taking advantage of load balancing and data replication features over multiple machines for storing files.
This function, called GridFS,[9] is included with MongoDB drivers and available with no difficulty for development languages (see "Language Support" for a list of supported languages). MongoDB exposes functions for file manipulation and content to developers. GridFS is used, for example, in plugins for NGINX[10] and lighttpd.[11] Instead of storing a file in a single document, GridFS divides a file into parts, or chunks, and stores each of those chunks as a separate document.[12]
In a multi-machine MongoDB system, files can be distributed and copied multiple times between machines transparently, thus effectively creating a load-balanced and fault-tolerant system.
Aggregation
MapReduce can be used for batch processing of data and aggregation operations. The aggregation framework enables users to obtain the kind of results for which the SQL GROUP BY clause is used.
Server-side JavaScript execution
JavaScript can be used in queries, aggregation functions (such as MapReduce), and sent directly to the database to be executed.
Capped collections
MongoDB supports fixed-size collections called capped collections. This type of collection maintains insertion order and, once the specified size has been reached, behaves like a circular queue.

Criticisms Edit

Prior to November 2012, MongoDB's default consistency model ("write concern") acknowledged writes as soon as they had entered the client's outgoing queue,[13] meaning that the default setup was vulnerable to client crashes.

MongoDB uses a readers-writer lock that allows concurrent read access to a database but exclusive write access to a single write operation. Before version 2.2, this lock was implemented on a per-mongod basis. Since version 2.2, the lock has been implemented at the database level.[14] Since version 2.8, which later become 3.0,[15] pluggable storage engines were introduced.[16] Based on the storage engine the lock has been implemented on collection or on document level (document level is the entity of the isolation on write operations). With versions prior to 2.8, one approach to increase concurrency is to use sharding.[17] In some situations, reads and writes will yield their locks. If MongoDB predicts a page is unlikely to be in memory, operations will yield their lock while the pages load. The use of lock yielding expanded greatly in 2.2.[18]

Another criticism is related to the limitations of MongoDB when used on 32-bit systems.[19] In some cases, this was due to inherent memory limitations.[20] MongoDB recommends 64-bit systems and that users provide sufficient RAM for their working set. Some users encounter issues when their working set exceeds available RAM and the system encounters page faults. Compose, a provider of managed MongoDB infrastructure, recommends a scaling checklist for large systems.[21]

Additionally, MongoDB does not support collation-based sorting and is limited to byte-wise comparison via memcmp,[22] which will not provide correct ordering for many non-English languages[23] when used with a Unicode encoding.

February 10, 2015: Anyone could call up or modify several million pieces of customer data online including names, addresses and e-mails. Three students were able to show this for 40,000 online databases in both Germany and France. The cause is a misconfigured open source database upon which millions of online stores and platforms from all over the world base their services. If the operators blindly stick to the defaults in the installation process and do not consider crucial details, the data is available online, completely unprotected. [24]

Language support Edit

MongoDB has official drivers for a variety of popular programming languages and development environments.[25] There are also a large number of unofficial or community-supported drivers for other programming languages and frameworks.[26]

Management and graphical front-endsEdit

Official MongoDB tools Edit

In a MongoDB installation the following commands are available:

mongo
MongoDB offers an interactive shell called mongo,[27] which lets developers view, insert, remove, and update data in their databases, as well as get replication information, set up sharding, shut down servers, execute JavaScript, and more.
Administrative information can also be accessed through a web interface,[28] a simple webpage that serves information about the current server status. By default, this interface is 1000 ports above the database port (28017).
mongostat
mongostat[29] is a command-line tool that displays a summary list of status statistics for a currently running MongoDB instance: how many inserts, updates, removes, queries, and commands were performed, as well as what percentage of the time the database was locked and how much memory it is using. This tool is similar to the UNIX/Linux vmstat utility.
mongotop
mongotop[30] is a command-line tool providing a method to track the amount of time a MongoDB instance spends reading and writing data. mongotop provides statistics on the per-collection level. By default, mongotop returns values every second. This tool is similar to the UNIX/Linux top utility.
mongosniff
mongosniff[31] is a command-line tool providing a low-level tracing/sniffing view into database activity by monitoring (or "sniffing") network traffic going to and from MongoDB. mongosniff requires the Libpcap network library and is only available for Unix-like systems. A cross-platform alternative is the open source Wireshark packet analyzer which has full support for the MongoDB wire protocol.
mongooplog
mongooplog[32] is a simple tool that polls operations from the replication oplog of a remote server, and applies them to the local server. This capability supports certain classes of real-time migrations that require that the source server remain online and in operation throughout the migration process.
mongofiles
mongofiles[33] utility makes it possible to manipulate files stored in your MongoDB instance in GridFS[34] objects from the command line. It is particularly useful as it provides an interface between objects stored in your file system and GridFS.
mongoimport, mongoexport
mongoimport[35] is a command-line utility to import content from a JSON, CSV, or TSV export created by mongoexport[36] or potentially other third-party data exports.
mongodump, mongorestore
mongodump[37] is a command-line utility for creating a binary export of the contents of a Mongo database; mongorestore[38] can be used to reload a database dump.

Third-Party GUI tools Edit

There is an active and growing community of developers building third-party rich GUI tools for the MongoDB. Some relevant examples (listed in alphabetical order):

  • 3T MongoChef,[39] cross-platform MongoDB GUI
  • BI Studio, Business Intelligence frontend for MongoDB.
  • Database Master, web-based client software, supports RDMS
  • Fang of Mongo,[40] web-based UI, built with Django and jQuery
  • Futon4Mongo,[41] a clone of the CouchDB-Futon-Web-Intterface for MongoDB
  • HumongouS.io,[42] Web based GUI for MongoDB
  • mms, Mongo Management Studio,[43] cross-platfrorm and web-based GUI
  • Mongo3,[44] ruby-based GUI
  • MongoHub,[45] a native OS-X-application for MongoDB management
  • Opricot,[46] browser-based MongoDB-Shell, implemented in PHP
  • UMongo (JMongoBrowser),[47] cross-platform Management-GUI, implemented in Java
  • NoSQL Manager for MongoDB,[48] a MS Windows GUI application for MongoDB management with Shell

PopularityEdit

As of de-2-monŧ 2015, MongoDB is the fourth most popular type of database management system, and the most popular for document stores.[3]

Production deploymentsEdit

Large-scale deployments of MongoDB are tracked by MongoDB Inc. Some of the prominent users of MongoDB include:

  • MetLife uses MongoDB for “The Wall", a customer service application providing a "360-degree view" of MetLife customers.[49]
  • SAP uses MongoDB in the SAP PaaS.[50]
  • Sourceforge uses MongoDB for its back-end storage pages.[51]
  • Shutterfly uses MongoDB for its photo platform. As of 2013, the photo platform stores 18 billion photos uploaded by Shutterfly's 7 million users.[52][53]
  • The Compact Muon Solenoid at CERN uses MongoDB as the primary back-end for the Data Aggregation System for the Large Hadron Collider.[54]
  • Foursquare deploys MongoDB on Amazon AWS to store venues and user check-ins into venues.[55]
  • eBay uses MongoDB in the search suggestion and the internal Cloud Manager State Hub.[56]
  • Sophos uses MongoDB in their cloud security technology.

PäkeijsEdit

Päkeijs en vörçions àveilàbol[57]:

  • mongodb-org: metapäkeij, konsisten bai folowiŋ 4-gè komponènts:
    • mongodb-org-server: mongod daemon and associated configuration and init scripts.
    • mongodb-org-mongos: mongos daemon. Körrènt vörçion: 2.6.7
    • mongodb-org-shell: mongo shell.
    • mongodb-org-tools:
      • mongoimport,
      • bsondump,
      • mongodump,
      • mongoexport,
      • mongofiles,
      • mongooplog,
      • mongoperf,
      • mongorestore,
      • mongostat,
      • mongotop.

Osou:

  • mongodb-10gen: 2.4.12
  • mongodb-org-unstable: 2.7.8

KomponèntsEdit

  • mongodb-org-server:
  • mongodb-org-mongos: mongos for “MongoDB Shard,” is a routing service for MongoDB shard configurations that processes queries from the application layer, and determines the location of this data in the sharded cluster, in order to complete these operations. From the perspective of the application, a mongos instance behaves identically to any other MongoDB instance.
  • mongodb-org-shell:
  • mongodb-org-tools:

PripäreiçionEdit

Ädd GPG kyivälyu:

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.tHvkF3jUmf --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/banshee-team-ppa.gpg --keyring /etc/apt/trusted.gpg.d/canonical-qt5-edgers-qt5-beta2.gpg --keyring /etc/apt/trusted.gpg.d/ubuntu-toolchain-r-test.gpg --keyring /etc/apt/trusted.gpg.d/videolan-master-daily.gpg --keyserver keyserver.ubuntu.com --recv 7F0CEB10
gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
gpg: key 7F0CEB10: public key "Richard Kreuter <richard@10gen.com>" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

Krieit 10gen.list wiŧ 10gen rīpositori kontent:

echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list.d/10gen.list

mongodb-orgEdit

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  • mongodb-org
  • mongodb-org-mongos
  • mongodb-org-server
  • mongodb-org-shell
  • mongodb-org-tools
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 49.5 MB of archives.
After this operation, 137 MB disk space will be freed.
Do you want to continue? [Y/n] y

DawnloudiŋEdit

  1. Get: http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-shell amd64 3.0.0 [4,233 kB]
  2. Get: http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-server amd64 3.0.0 [8,539 kB]
  3. Get: http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-mongos amd64 3.0.0 [4,013 kB]
  4. Get: http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-tools amd64 3.0.0 [32.8 MB]
  5. Get: http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org amd64 3.0.0 [3,618 B]
Fetched 49.5 MB in 4s (10.1 MB/s)     

InstoliŋEdit

(Reading database ... 299552 files and directories currently installed.)
Preparing to unpack .../mongodb-org-shell_3.0.0_amd64.deb ...
Unpacking mongodb-org-shell (3.0.0) over (2.6.8) ...
Preparing to unpack .../mongodb-org-server_3.0.0_amd64.deb ...
mongod stop/waiting
Unpacking mongodb-org-server (3.0.0) over (2.6.8) ...
Preparing to unpack .../mongodb-org-mongos_3.0.0_amd64.deb ...
Unpacking mongodb-org-mongos (3.0.0) over (2.6.8) ...
Preparing to unpack .../mongodb-org-tools_3.0.0_amd64.deb ...
Unpacking mongodb-org-tools (3.0.0) over (2.6.8) ...
Preparing to unpack .../mongodb-org_3.0.0_amd64.deb ...
arg: upgrade
Unpacking mongodb-org (3.0.0) over (2.6.8) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...

SetiŋEdit

Setting up mongodb-org-shell (3.0.0) ...
Setting up mongodb-org-server (3.0.0) ...
Installing new version of config file /etc/init/mongod.conf ...
mongod start/running, process 10652
Setting up mongodb-org-mongos (3.0.0) ...
Setting up mongodb-org-tools (3.0.0) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mongodb-org (3.0.0) ...

RùniŋEdit

If yusiŋ mainā locale en folowen öra geted, yus export LC_ALL=C tu korrekt problèm[58].

$ mongo
Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly.
$ export LC_ALL=C
$ mongo
MongoDB shell version: 2.6.7
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
>
$ service mongod start
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.85" (uid=1000 pid=7516 comm="start mongod ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

šardiŋ en rīdùplikeitiŋEdit

Akkording tu StackOverflow dè answèr, if not yus in prodùkçion moud, šardiŋ en rīdùplikeitiŋ wa possibol on 1-gè kompyutā. Folowen skript wa kopi from StackOverflow dè answèr[59]:

# Create some directories
mkdir -p ./s0/ ./s1/rs0 ./s1/rs/ ./s1/rs2 ./cfg/

# Start first shard
mongod --logpath "s0.log" --dbpath ./s0/ --port 37017 --fork --shardsvr
about to fork child process, waiting until server is ready for connections.
forked process: 4907
child process started successfully, parent exiting
#
# Start second shard
mongod --replSet s1 --logpath "s1-r0.log" --dbpath ./s1/rs0 --port 47017 --fork --shardsvr
about to fork child process, waiting until server is ready for connections.
forked process: 4926
child process started successfully, parent exiting
mongod --replSet s1 --logpath "s1-r1.log" --dbpath ./s1/rs1 --port 47018 --fork --shardsvr
about to fork child process, waiting until server is ready for connections.
forked process: 4972
child process started successfully, parent exiting
mongod --replSet s1 --logpath "s1-r2.log" --dbpath ./s1/rs2 --port 47019 --fork --shardsvr
about to fork child process, waiting until server is ready for connections.
forked process: 5020
child process started successfully, parent exiting
#
# Start config server and mongos
mongod --logpath "cfg.log" --dbpath ./cfg/ --port 57040 --fork --configsvr
about to fork child process, waiting until server is ready for connections.
forked process: 5067
child process started successfully, parent exiting
mongos --logpath "mongos.log" --configdb localhost:57040 --fork
2015-02-24T17:14:58.427+0800 warning: running with 1 config server should be done only for testing purposes and is not recommended for production
about to fork child process, waiting until server is ready for connections.
forked process: 5081
child process started successfully, parent exiting
# Configure rs
mongo --port 47017 << 'EOF'
rs.initiate(
   { _id: "s1", members:[
      { _id : 0, host : "localhost:47017" },
      { _id : 1, host : "localhost:47018" },
      { _id : 2, host : "localhost:47019" }]
   });
EOF
MongoDB shell version: 2.6.7
connecting to: 127.0.0.1:47014/test
{
"info" : "Config now saved locally. Should come online in about a minute.",
"ok" : 1
}
bye
# Configure sharding
mongo << 'EOF'
db.adminCommand( { addshard : "localhost:37017" } );
db.adminCommand( { addshard : "s1/"+"localhost:47017,localhost:47018,localhost:47019" } );
db.adminCommand({enableSharding: "test"})
db.adminCommand({shardCollection: "test.foo", key: {bar: 1}});
EOF
MongoDB shell version: 2.6.7
connecting to: test
{ "shardAdded" : "shard0000", "ok" : 1 }
{ "shardAdded" : "s1", "ok" : 1 }
{ "ok" : 1 }
{ "collectionsharded" : "test.foo", "ok" : 1 }
bye

ÖrasEdit

If öra, folowen problèms appīr:

2015-02-24T17:17:50.022+0800 warning: Failed to connect to 127.0.0.1:47014, reason: errno:111 Connection refused
2015-02-24T17:17:50.023+0800 Error: couldn't connect to server 127.0.0.1:47014 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:148
exception: connect failed
{
"ok" : 0,
"errmsg" : "couldn't connect to new shard socket exception [CONNECT_ERROR] for localhost:37107"
}
{
"ok" : 0,
"errmsg" : "can't add shard s1/localhost:47017,localhost:47018,localhost:47019 because a local database 'test' exists in another s1:s1/localhost:47017,localhost:47018,localhost:47019"
}
{ "ok" : 0, "errmsg" : "already enabled" }
{ "ok" : 0, "errmsg" : "already sharded" }

ÙpgreidEdit

upgradeCheck diŋyǐu rùn ùpon admin deitābeis:

mongos> db.upgradeCheckAllDBs()
2015-03-04T16:17:20.161+0800 Error: db.upgradeCheckAllDBs() can only be run from the admin database at src/mongo/shell/upgrade_check.js:173
mongos> use admin
switched to db admin
mongos> db.upgradeCheckAllDBs()

Checking database demo

Checking collection demo.books

Checking collection demo.system.indexes

Checking database test

Checking collection test.foo

Checking collection test.system.indexes

Checking database config

Checking collection config.changelog

Checking collection config.chunks

Checking collection config.collections

Checking collection config.databases

Checking collection config.lockpings

Checking collection config.locks

Checking collection config.mongos

Checking collection config.settings

Checking collection config.shards

Checking collection config.system.indexes

Checking collection config.tags

Checking collection config.version

Checking database admin

Everything is ready for the upgrade!
true
mongos>

mongodb-10genEdit

# apt-get install mongodb-10gen
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  • mongodb-10gen
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 88.1 MB of archives.
After this operation, 225 MB of additional disk space will be used.
  1. Get: http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-10gen amd64 2.4.12 [88.1 MB]
Fetched 88.1 MB in 25s (3,436 kB/s)                                            
Selecting previously unselected package mongodb-10gen.
(Reading database ... 290812 files and directories currently installed.)
Preparing to unpack .../mongodb-10gen_2.4.12_amd64.deb ...
Unpacking mongodb-10gen (2.4.12) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up mongodb-10gen (2.4.12) ...
Adding system user `mongodb' (UID 117) ...
Adding new user `mongodb' (UID 117) with group `nogroup' ...
Not creating home directory `/home/mongodb'.
Adding group `mongodb' (GID 125) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
mongodb start/running, process 2921
Processing triggers for ureadahead (0.100.0-16) ...
#

RīkompaileiçionEdit

MongoDB dè SSL sùpport rīkwair Enterprais vörçion, or kompail sōrskoud wiŧ SSL sùpport. Steps-wa akkordiŋ tu MongoDB dè dokyumenteiçion listen bilow[60]:

# apt-get install scons build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
scons is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# apt-get install libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done

The following extra packages will be installed:

  • libboost-atomic1.54-dev
  • libboost-atomic1.54.0
  • libboost-chrono1.54-dev
  • libboost-chrono1.54.0
  • libboost-date-time1.54-dev
  • libboost-filesystem1.54-dev
  • libboost-filesystem1.54.0
  • libboost-program-options1.54-dev
  • libboost-program-options1.54.0
  • libboost-serialization1.54-dev
  • libboost-serialization1.54.0
  • libboost-system1.54-dev
  • libboost-system1.54.0
  • libboost-thread1.54-dev
  • libboost-thread1.54.0
  • libboost1.54-dev

Suggested packages:

  • libboost1.54-doc
  • libboost-context1.54-dev
  • libboost-coroutine.54-dev
  • libboost-exception1.54-dev
  • libboost-graph1.54-dev
  • libboost-graph-parallel1.54-dev
  • libboost-iostreams1.54-dev
  • libboost-locale1.54-dev
  • libboost-log.54-dev
  • libboost-math1.54-dev
  • libboost-mpi1.54-dev
  • libboost-mpi-python1.54-dev
  • libboost-python1.54-dev
  • libboost-random1.54-dev
  • libboost-regex1.54-dev
  • libboost-signals1.54-dev
  • libboost-test1.54-dev
  • libboost-timer1.54-dev
  • libboost-wave1.54-dev
  • libboost1.54-tools-dev
  • libmpfrc++-dev
  • libntl-dev

The following NEW packages will be installed:

  1. libboost-atomic1.54-dev
  2. libboost-atomic1.54.0
  3. libboost-chrono1.54-dev
  4. libboost-chrono1.54.0
  5. libboost-date-time1.54-dev
  6. libboost-filesystem-dev
  7. libboost-filesystem1.54-dev
  8. libboost-filesystem1.54.0
  9. libboost-program-options-dev
  10. libboost-program-options1.54-dev
  11. libboost-program-options1.54.0
  12. libboost-serialization1.54-dev
  13. libboost-serialization1.54.0
  14. libboost-system-dev
  15. libboost-system1.54-dev
  16. libboost-system1.54.0
  17. libboost-thread-dev
  18. libboost-thread1.54-dev
  19. libboost-thread1.54.0
  20. libboost1.54-dev
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,430 kB of archives.
After this operation, 103 MB of additional disk space will be used.
Do you want to continue? [Y/n]

DawnloudiŋEdit

  1. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-atomic1.54.0 amd64 1.54.0-4ubuntu3.1 [8,076 B]
  2. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-system1.54.0 amd64 1.54.0-4ubuntu3.1 [10.1 kB]
  3. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-chrono1.54.0 amd64 1.54.0-4ubuntu3.1 [12.5 kB]
  4. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-filesystem1.54.0 amd64 1.54.0-4ubuntu3.1 [34.2 kB]
  5. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-program-options1.54.0 amd64 1.54.0-4ubuntu3.1 [115 kB]
  6. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-serialization1.54.0 amd64 1.54.0-4ubuntu3.1 [126 kB]
  7. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-thread1.54.0 amd64 1.54.0-4ubuntu3.1 [26.5 kB]
  8. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost1.54-dev amd64 1.54.0-4ubuntu3.1 [5,682 kB]
  9. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-atomic1.54-dev amd64 1.54.0-4ubuntu3.1 [4,914 B]
  10. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-chrono1.54-dev amd64 1.54.0-4ubuntu3.1 [14.2 kB]
  11. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-serialization1.54-dev amd64 1.54.0-4ubuntu3.1 [151 kB]
  12. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-date-time1.54-dev amd64 1.54.0-4ubuntu3.1 [25.2 kB]
  13. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-system1.54-dev amd64 1.54.0-4ubuntu3.1 [8,428 B]
  14. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-filesystem1.54-dev amd64 1.54.0-4ubuntu3.1 [41.7 kB]
  15. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty/main libboost-filesystem-dev amd64 1.54.0.1ubuntu1 [2,854 B]
  16. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-program-options1.54-dev amd64 1.54.0-4ubuntu3.1 [133 kB]
  17. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty/main libboost-program-options-dev amd64 1.54.0.1ubuntu1 [2,840 B]
  18. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty/main libboost-system-dev amd64 1.54.0.1ubuntu1 [2,956 B]
  19. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-thread1.54-dev amd64 1.54.0-4ubuntu3.1 [26.0 kB]
  20. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty/main libboost-thread-dev amd64 1.54.0.1ubuntu1 [2,848 B]

Fetched 6,430 kB in 13s (481 kB/s)

InstoliŋEdit

(Reading database ... 319438 files and directories currently installed.)
Selecting previously unselected package libboost-atomic1.54.0:amd64.
Preparing to unpack .../libboost-atomic1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-atomic1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-system1.54.0:amd64.
Preparing to unpack .../libboost-system1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-system1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-chrono1.54.0:amd64.
Preparing to unpack .../libboost-chrono1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-chrono1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-filesystem1.54.0:amd64.
Preparing to unpack .../libboost-filesystem1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-filesystem1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-program-options1.54.0:amd64.
Preparing to unpack .../libboost-program-options1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-serialization1.54.0:amd64.
Preparing to unpack .../libboost-serialization1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-serialization1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-thread1.54.0:amd64.
Preparing to unpack .../libboost-thread1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost1.54-dev.
Preparing to unpack .../libboost1.54-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost1.54-dev (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-atomic1.54-dev:amd64.
Preparing to unpack .../libboost-atomic1.54-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-atomic1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-chrono1.54-dev:amd64.
Preparing to unpack .../libboost-chrono1.54-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-chrono1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-serialization1.54-dev:amd64.
Preparing to unpack .../libboost-serialization1.54-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-serialization1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-date-time1.54-dev:amd64.
Preparing to unpack .../libboost-date-time1.54-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-date-time1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-system1.54-dev:amd64.
Preparing to unpack .../libboost-system1.54-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-system1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-filesystem1.54-dev:amd64.
Preparing to unpack .../libboost-filesystem1.54-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-filesystem1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-filesystem-dev:amd64.
Preparing to unpack .../libboost-filesystem-dev_1.54.0.1ubuntu1_amd64.deb ...
Unpacking libboost-filesystem-dev:amd64 (1.54.0.1ubuntu1) ...
Selecting previously unselected package libboost-program-options1.54-dev:amd64.
Preparing to unpack .../libboost-program-options1.54-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-program-options1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-program-options-dev:amd64.
Preparing to unpack .../libboost-program-options-dev_1.54.0.1ubuntu1_amd64.deb ...
Unpacking libboost-program-options-dev:amd64 (1.54.0.1ubuntu1) ...
Selecting previously unselected package libboost-system-dev:amd64.
Preparing to unpack .../libboost-system-dev_1.54.0.1ubuntu1_amd64.deb ...
Unpacking libboost-system-dev:amd64 (1.54.0.1ubuntu1) ...
Selecting previously unselected package libboost-thread1.54-dev:amd64.
Preparing to unpack .../libboost-thread1.54-dev_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-thread1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-thread-dev:amd64.
Preparing to unpack .../libboost-thread-dev_1.54.0.1ubuntu1_amd64.deb ...
Unpacking libboost-thread-dev:amd64 (1.54.0.1ubuntu1) ...

SetiŋEdit

Setting up libboost-atomic1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-system1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-chrono1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-filesystem1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-serialization1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost1.54-dev (1.54.0-4ubuntu3.1) ...
Setting up libboost-atomic1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-chrono1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-serialization1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-date-time1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-system1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-filesystem1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-filesystem-dev:amd64 (1.54.0.1ubuntu1) ...
Setting up libboost-program-options1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-program-options-dev:amd64 (1.54.0.1ubuntu1) ...
Setting up libboost-system-dev:amd64 (1.54.0.1ubuntu1) ...
Setting up libboost-thread1.54-dev:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-thread-dev:amd64 (1.54.0.1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

python-pymongoEdit

$ sudo apt-get install python-pymongo
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  • python-bson
  • python-bson-ext
  • python-gridfs
  • python-pymongo-ext

The following NEW packages will be installed:

  1. python-bson
  2. python-bson-ext
  3. python-gridfs
  4. python-pymongo
  5. python-pymongo-ext
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 129 kB of archives.
After this operation, 871 kB of additional disk space will be used.
Do you want to continue? [Y/n]
  1. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty/main python-bson amd64 2.6.3-1build1 [18.4 kB]
  2. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty/main python-bson-ext amd64 2.6.3-1build1 [17.5 kB]
  3. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty/main python-pymongo amd64 2.6.3-1build1 [73.7 kB]
  4. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty/main python-gridfs all 2.6.3-1build1 [10.2 kB]
  5. Get: http://hk.archive.ubuntu.com/ubuntu/ trusty/main python-pymongo-ext amd64 2.6.3-1build1 [8,960 B]

Fetched 129 kB in 2s (53.1 kB/s)

(Reading database ... 330119 files and directories currently installed.)

Selecting previously unselected package python-bson.
Preparing to unpack .../python-bson_2.6.3-1build1_amd64.deb ...
Unpacking python-bson (2.6.3-1build1) ...
Selecting previously unselected package python-bson-ext.
Preparing to unpack .../python-bson-ext_2.6.3-1build1_amd64.deb ...
Unpacking python-bson-ext (2.6.3-1build1) ...
Selecting previously unselected package python-pymongo.
Preparing to unpack .../python-pymongo_2.6.3-1build1_amd64.deb ...
Unpacking python-pymongo (2.6.3-1build1) ...
Selecting previously unselected package python-gridfs.
Preparing to unpack .../python-gridfs_2.6.3-1build1_all.deb ...
Unpacking python-gridfs (2.6.3-1build1) ...
Selecting previously unselected package python-pymongo-ext.
Preparing to unpack .../python-pymongo-ext_2.6.3-1build1_amd64.deb ...
Unpacking python-pymongo-ext (2.6.3-1build1) ...
Setting up python-bson (2.6.3-1build1) ...
Setting up python-bson-ext (2.6.3-1build1) ...
Setting up python-pymongo (2.6.3-1build1) ...
Setting up python-gridfs (2.6.3-1build1) ...
Setting up python-pymongo-ext (2.6.3-1build1) ...

sconsEdit

start scons tu biuld ol wiŧ --ssl opçion:

KlaièntsEdit

$ sudo apt-get install mongodb-clients
正在讀取套件清單... 完成
正在重建相依關係          
正在讀取狀態資料... 完成
下列的額外套件將被安裝:
  • libboost-program-options1.55.0
  • libgoogle-perftools4
  • libsnappy1
  • libtcmalloc-minimal4
  • libunwind8
  • libv8-3.14.5
  • libyaml-cpp0.5

下列【新】套件將會被安裝:

  1. libboost-program-options1.55.0
  2. libgoogle-perftools4
  3. libsnappy1
  4. libtcmalloc-minimal4
  5. libunwind8
  6. libv8-3.14.5
  7. libyaml-cpp0.5
  8. mongodb-clients
升級 0 個,新安裝 8 個,移除 0 個,有 0 個未被升級。
需要下載 48.0 MB/49.2 MB 的套件檔。
此操作完成之後,會多佔用 165 MB 的磁碟空間。
Do you want to continue? [Y/n] 

DawnloudiŋEdit

  1. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/main libboost-program-options1.55.0 amd64 1.55.0+dfsg-3ubuntu2 [123 kB]
  2. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/main libunwind8 amd64 1.1-3.2 [48.4 kB]
  3. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/universe libyaml-cpp0.5 amd64 0.5.1-1 [207 kB]
  4. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/main libtcmalloc-minimal4 amd64 2.2.1-0.2 [108 kB]
  5. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/main libgoogle-perftools4 amd64 2.2.1-0.2 [193 kB]
  6. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/main libsnappy1 amd64 1.1.2-3ubuntu1 [12.7 kB]
  7. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/universe mongodb-clients amd64 1:2.6.3-0ubuntu7 [47.3 MB]

取得 48.0 MB 用了 16秒 (3,002 kB/s)

InstoliŋEdit

(讀取資料庫 ... 目前共安裝了 291958 個檔案和目錄。)

選取了原先未選的套件 libboost-program-options1.55.0:amd64。
準備解開 .../libboost-program-options1.55.0_1.55.0+dfsg-3ubuntu2_amd64.deb ...
解開 libboost-program-options1.55.0:amd64 (1.55.0+dfsg-3ubuntu2) 中...
選取了原先未選的套件 libunwind8。
準備解開 .../libunwind8_1.1-3.2_amd64.deb ...
解開 libunwind8 (1.1-3.2) 中...
選取了原先未選的套件 libyaml-cpp0.5:amd64。
準備解開 .../libyaml-cpp0.5_0.5.1-1_amd64.deb ...
解開 libyaml-cpp0.5:amd64 (0.5.1-1) 中...
選取了原先未選的套件 libtcmalloc-minimal4。
準備解開 .../libtcmalloc-minimal4_2.2.1-0.2_amd64.deb ...
解開 libtcmalloc-minimal4 (2.2.1-0.2) 中...
選取了原先未選的套件 libgoogle-perftools4。
準備解開 .../libgoogle-perftools4_2.2.1-0.2_amd64.deb ...
解開 libgoogle-perftools4 (2.2.1-0.2) 中...
選取了原先未選的套件 libv8-3.14.5。
準備解開 .../libv8-3.14.5_3.14.5.8-5ubuntu2_amd64.deb ...
解開 libv8-3.14.5 (3.14.5.8-5ubuntu2) 中...
選取了原先未選的套件 libsnappy1。
準備解開 .../libsnappy1_1.1.2-3ubuntu1_amd64.deb ...
解開 libsnappy1 (1.1.2-3ubuntu1) 中...
選取了原先未選的套件 mongodb-clients。
準備解開 .../mongodb-clients_1%3a2.6.3-0ubuntu7_amd64.deb ...
解開 mongodb-clients (1:2.6.3-0ubuntu7) 中...

SetiŋEdit

Processing triggers for man-db (2.7.0.2-5) ...
設定 libboost-program-options1.55.0:amd64 (1.55.0+dfsg-3ubuntu2) ...
設定 libunwind8 (1.1-3.2) ...
設定 libyaml-cpp0.5:amd64 (0.5.1-1) ...
設定 libtcmalloc-minimal4 (2.2.1-0.2) ...
設定 libgoogle-perftools4 (2.2.1-0.2) ...
設定 libv8-3.14.5 (3.14.5.8-5ubuntu2) ...
設定 libsnappy1 (1.1.2-3ubuntu1) ...
設定 mongodb-clients (1:2.6.3-0ubuntu7) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...

MongoDB 3.0 šelEdit

Tu instol MongoDB 3.0 dè šel, diŋyǐu instol from mongoDB dè rīpositori en instol wiŧ kommand folowen:

$ sudo apt-get install mongodb-org-shell
正在讀取套件清單... 完成
正在重建相依關係          
正在讀取狀態資料... 完成
下列【新】套件將會被安裝:
  • mongodb-org-shell
升級 0 個,新安裝 1 個,移除 0 個,有 0 個未被升級。
需要下載 4,242 kB 的套件檔。
此操作完成之後,會多佔用 11.2 MB 的磁碟空間。
  1. 下載: http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.0/multiverse mongodb-org-shell amd64 3.0.2 [4,242 kB]
取得 4,242 kB 用了 0秒 (5,457 kB/s)            

(讀取資料庫 ... 目前共安裝了 291958 個檔案和目錄。)

選取了原先未選的套件 mongodb-org-shell。
準備解開 .../mongodb-org-shell_3.0.2_amd64.deb ...
解開 mongodb-org-shell (3.0.2) 中...
Processing triggers for man-db (2.7.0.2-5) ...
設定 mongodb-org-shell (3.0.2) ...

Konnektiŋ from RubyEdit

Konnektiŋ tu MongoDB from Ruby rīkwair divelopā dè vörçion dè ruby (ruby-dev)[61]:

$ sudo apt-get install ruby-dev
正在讀取套件清單... 完成
正在重建相依關係          
正在讀取狀態資料... 完成
下列的額外套件將被安裝:
  • libgmp-dev
  • libgmpxx4ldbl
  • ruby2.1-dev

建議套件:

  • libgmp10-doc
  • libmpfr-dev

下列【新】套件將會被安裝:

  1. libgmp-dev
  2. libgmpxx4ldbl
  3. ruby-dev
  4. ruby2.1-dev
升級 0 個,新安裝 4 個,移除 0 個,有 0 個未被升級。
需要下載 1,226 kB 的套件檔。
此操作完成之後,會多佔用 6,069 kB 的磁碟空間。
Do you want to continue? [Y/n] y
  1. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/main libgmpxx4ldbl amd64 2:6.0.0+dfsg-6ubuntu1 [9,164 B]
  2. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/main libgmp-dev amd64 2:6.0.0+dfsg-6ubuntu1 [316 kB]
  3. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/main ruby2.1-dev amd64 2.1.2-2ubuntu3 [897 kB]
  4. 下載: http://tw.archive.ubuntu.com/ubuntu/ vivid/main ruby-dev all 1:2.1.0.4ubuntu1 [4,604 B]
取得 1,226 kB 用了 2秒 (473 kB/s)

(讀取資料庫 ... 目前共安裝了 368202 個檔案和目錄。)

選取了原先未選的套件 libgmpxx4ldbl:amd64。
準備解開 .../libgmpxx4ldbl_2%3a6.0.0+dfsg-6ubuntu1_amd64.deb ...
解開 libgmpxx4ldbl:amd64 (2:6.0.0+dfsg-6ubuntu1) 中...
選取了原先未選的套件 libgmp-dev:amd64。
準備解開 .../libgmp-dev_2%3a6.0.0+dfsg-6ubuntu1_amd64.deb ...
解開 libgmp-dev:amd64 (2:6.0.0+dfsg-6ubuntu1) 中...
選取了原先未選的套件 ruby2.1-dev:amd64。
準備解開 .../ruby2.1-dev_2.1.2-2ubuntu3_amd64.deb ...
解開 ruby2.1-dev:amd64 (2.1.2-2ubuntu3) 中...
選取了原先未選的套件 ruby-dev。
準備解開 .../ruby-dev_1%3a2.1.0.4ubuntu1_all.deb ...
解開 ruby-dev (1:2.1.0.4ubuntu1) 中...
設定 libgmpxx4ldbl:amd64 (2:6.0.0+dfsg-6ubuntu1) ...
設定 libgmp-dev:amd64 (2:6.0.0+dfsg-6ubuntu1) ...
設定 ruby2.1-dev:amd64 (2.1.2-2ubuntu3) ...
設定 ruby-dev (1:2.1.0.4ubuntu1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
$ sudo -H gem install mongo bson_ext
tom@bktkowks04:~/Development/Learning-Ruby$ sudo -H gem install mongo bson_ext[62]:
Fetching: bson-3.0.3.gem (100%)
Building native extensions.  This could take a while...
Successfully installed bson-3.0.3
Parsing documentation for bson-3.0.3
Installing ri documentation for bson-3.0.3


Fetching: mongo-2.0.4.gem (100%)
Successfully installed mongo-2.0.4
Parsing documentation for mongo-2.0.4
Installing ri documentation for mongo-2.0.4
Done installing documentation for bson, mongo after 3 seconds
Building native extensions.  This could take a while...
Successfully installed bson_ext-1.12.2
Parsing documentation for bson_ext-1.12.2
Installing ri documentation for bson_ext-1.12.2
Done installing documentation for bson_ext after 0 seconds
3 gems installed

Konnekçion problèmsEdit

mongos> show dbs
2015-05-06T19:09:01.648+0800 E QUERY Error: listDatabases failed:{
"code" : 11002,
"ok" : 0,
"errmsg" : "exception: socket exception [CONNECT_ERROR] for shard01/localhost:47017,localhost:47018,localhost:47019"
}
at Error (<anonymous>)
at Mongo.getDBs (src/mongo/shell/mongo.js:47:15)
at shellHelper.show (src/mongo/shell/utils.js:630:33)
at shellHelper (src/mongo/shell/utils.js:524:36)
at (shellhelp2):1:1 at src/mongo/shell/mongo.js:47
mongos>

Si osouEdit

RiförènsesEdit

  1. "humongous" in (Iŋgliš/English). m-w. Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://www.merriam-webster.com/dictionary/humongous. Ritrīven on 2015-02-17. 
  2. 2.0 2.1 "10gen embraces what it created, becomes MongoDB Inc.". Gigaom. Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://gigaom.com/2013/08/27/10gen-embraces-what-it-created-becomes-mongodb-inc/. Ritrīven on 27 August 2013. 
  3. 3.0 3.1 "Popularity ranking of database management systems". db-engines.com. Solid IT. Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://db-engines.com/en/ranking. Ritrīven on 4 February 2014. 
  4. The MongoDB NoSQL Database Blog, The AGPL
  5. MongoDB Developer Manual
  6. Data Modeling for MongoDB
  7. [1]
  8. [2]
  9. GridFS article on MongoDB Developer's Manual
  10. NGINX plugin for MongoDB source code
  11. lighttpd plugin for MongoDB source code
  12. Expertstown - MongoDB overview
  13. "Default Write Concern Change". MongoDB Release Notes. Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://docs.mongodb.org/manual/release-notes/drivers-write-concern/. Ritrīven on April 17, 2014. 
  14. FAQ Concurrency - How Granular Are Locks
  15. Eliot Horowitz (2015-01-22). "Renaming Our Upcoming Release to MongoDB 3.0". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://www.mongodb.com/blog/post/renaming-our-upcoming-release-mongodb-30?_ga=1.2592691.2020943709.1424661872. Ritrīven on 2015-02-23. 
  16. [3] - MongoDB 2.8 release
  17. FAQ Concurrency - How Does Sharding Affect Concurrency
  18. FAQ Concurrency - Do Operations Ever Yield the Lock
  19. 32-bit Limitations
  20. Does Everybody Hate MongoDB
  21. [4]
  22. "memcmp". cppreference.com. 31 May 2013. Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://en.cppreference.com/w/c/string/byte/memcmp. Ritrīven on 26 April 2014. 
  23. MongoDB Jira ticket 1920
  24. [5]
  25. "MongoDB Drivers and Client Libraries". Mongodb.org. Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://www.mongodb.org/display/DOCS/Drivers. Ritrīven on 2013-07-08. 
  26. "Community Supported Drivers". Mongodb.org. Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://docs.mongodb.org/ecosystem/drivers/community-supported-drivers/. Ritrīven on 2014-07-09. 
  27. mongo - The Interactive Shell
  28. HTTP Console
  29. mongostat Manual
  30. mongotop Manual
  31. mongosniff Manual
  32. [6]
  33. [7]
  34. [8]
  35. mongoimport Manual
  36. mongoexport Manual
  37. mongodump Manual
  38. mongorestore Manual
  39. "3T MongoChef". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://3t.io/mongochef. Ritrīven on 2014-10-01. 
  40. "Fang of Mongo". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://github.com/Fiedzia/Fang-of-Mongo. Ritrīven on 2012-06-22. 
  41. "Futon4Mongo". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://github.com/sbellity/futon4mongo. Ritrīven on 2012-06-22. 
  42. "HumongouS.io". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. https://humongous.io. Ritrīven on 2015-01-15. 
  43. "Mongo Management Studio". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://www.litixsoft.de/mms/. Ritrīven on 2014-09-01. 
  44. "Mongo3". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://mongo3.com/. Ritrīven on 2012-06-22. 
  45. "MongoHub". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://mongohub.todayclose.com/. Ritrīven on 2012-06-22. 
  46. "Opricot". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. https://github.com/argon/Opricot-MongoConsole. Ritrīven on 2012-06-22. 
  47. "UMongo". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. https://github.com/agirbal/umongo/downloads. Ritrīven on 2012-06-22. 
  48. "NoSQL Manager for MongoDB". Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://www.mongodbmanager.com. Ritrīven on 2013-11-24. 
  49. "Metlife uses nosql for customer service". Information Week. Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://www.informationweek.com/software/information-management/metlife-uses-nosql-for-customer-service/240154741. Ritrīven on 8 November 2014. 
  50. The Quest to Understand the Use of MongoDB in the SAP PaaS
  51. Scaling SourceForge with MongoDB
  52. Real World NoSQL: MongoDB at Shutterfly
  53. Here's How We Think Of Shutterfly's Stock Value
  54. Holy Large Hadron Collider, Batman!
  55. Experiences Deploying MongoDB on AWS
  56. MongoDB at eBay
  57. "Install MongoDB on Ubuntu" in (Iŋgliš/English). Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. Ritrīven on 2015-02-17. 
  58. "Error in installing Mongo in virtual machine" in (Iŋgliš/English). Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://askubuntu.com/questions/536875/error-in-installing-mongo-in-virtual-machine. Ritrīven on 2015-02-22. 
  59. zero323 (2013-10-25). "Can 1 shard server have replica set while the rest don't" in (Iŋgliš/English). Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://stackoverflow.com/questions/19580202/can-1-shard-server-have-replica-set-while-the-rest-dont. Ritrīven on 2015-02-24. 
  60. "docs/building.md" in (Iŋgliš/English). 2014-11-25. Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. https://github.com/mongodb/mongo/blob/master/docs/building.md. Ritrīven on 2015-03-05. 
  61. "Error while installing json gem 'mkmf.rb can't find header files for ruby'" in (Iŋgliš/English). 2013-12-13. Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://stackoverflow.com/questions/20559255/error-while-installing-json-gem-mkmf-rb-cant-find-header-files-for-ruby. Ritrīven on 2015-05-28. 
  62. Gunderson, Ethan (2010-12-21). "Being Awesome with the MongoDB Ruby Driver" in (Iŋgliš/English). Archived from the original. You must specify the date the archive was made using the |archivedate= parameter. http://rubylearning.com/blog/2010/12/21/being-awesome-with-the-mongodb-ruby-driver/. Ritrīven on 2015-05-28. 

BibliographyEdit

Ikstörnol liŋkEdit

http://docs.mongodb.org/master/MongoDB-manual.pdf

Community content is available under CC-BY-SA unless otherwise noted.