MongoDB Documentation, Release 3.0.4 • mongodb-org-shell • mongodb-org-tools This package contains the mongo shell. This package contains the following MongoDB tools: mongoimport bsondump , mongodump , mongoexport , mongofiles , mongooplog , mongoperf , mongorestore , mongostat , and mongotop . Control Scripts The mongodb-org package includes various control scripts , including the init script /etc/init.d/mongod . These scripts are used to stop, start, and restart daemon processes. The package configures MongoDB using the /etc/mongod.conf file in conjunction with the control scripts. See the Configuration File reference for documentation of settings available in the configuration file. As of version 3.0.4, there are no control scripts for mongos . The mongos process is used only in sharding (page 667). You can use the mongod init script to derive your own mongos control script for use in such environments. See the mongos reference for configuration details. Considerations MongoDB only provides packages for 64-bit long-term support Ubuntu releases. Currently, this means 12.04 LTS (Precise Pangolin) and 14.04 LTS (Trusty Tahr). While the packages may work with other Ubuntu releases, this is not a supported configuration. You cannot install this package concurrently with the mongodb , mongodb-server , or mongodb-clients pack- ages provided by Ubuntu. The default /etc/mongod.conf configuration file supplied by the 3.0 series packages has bind_ip set to 127.0.0.1 by default. Modify this setting as needed for your environment before initializing a replica set . Changed in version 2.6: The package structure and names have changed as of version 2.6. For instructions on instal- lation of an older release, please refer to the documentation for the appropriate version. Step 1: Import the public key used by the package management system. The Ubuntu package management tools (i.e. dpkg and apt ) ensure package consistency and authenticity by requiring that distributors sign packages with GPG keys. Issue the following command to import the MongoDB public GPG Key$^{3}$: Step 2: Create a list file for MongoDB. Create the /etc/apt/sources.list.d/mongodb-org-3.0.list list file using the following command: Step 3: Reload local package database. Issue the following command to reload the local package database: Step 4: Install the MongoDB packages. You can install either the latest stable version of MongoDB or a specific version of MongoDB. $^{3}$https://docs.mongodb.org/10gen-gpg-key.asc 17 2.3. Installation Guides sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo "deb http://repo.mongodb.org/apt/ubuntu " $( lsb_release -sc ) "/mongodb-org/3.0 multiverse" sudo apt-get update Install MongoDB