MongoDB Documentation, Release 3.0.4 Step 5: Begin using MongoDB. To help you start using MongoDB, MongoDB provides Getting Started Guides in various driver editions. See getting-started for the available editions. Before deploying MongoDB in a production environment, consider the Production Notes (page 197) document. Later, to stop MongoDB, press Control+C in the terminal where the mongod instance is running. Uninstall MongoDB To completely remove MongoDB from a system, you must remove the MongoDB applications themselves, the configuration files, and any directories containing data and logs. The following section guides you through the necessary steps. Warning: This process will completely remove MongoDB, its configuration, and all databases. This process is not reversible, so ensure that all of your configuration and data is backed up before proceeding. Step 1: Stop MongoDB. Stop the mongod process by issuing the following command: sudo service mongod stop Step 2: Remove Packages. Remove any MongoDB packages that you had previously installed. sudo apt-get purge mongodb-org * Step 3: Remove Data Directories. Remove MongoDB databases and log files. sudo rm -r /var/log/mongodb sudo rm -r /var/lib/mongodb Install MongoDB on Linux Systems Overview Compiled versions of MongoDB for Linux provide a simple option for installing MongoDB for other Linux systems without supported packages. Considerations For production deployments, always run MongoDB on 64-bit systems. Install MongoDB MongoDB provides archives for both 64-bit and 32-bit Linux. Follow the installation procedure appropriate for your system. Install for 64-bit Linux Step 1: Download the binary files for the desired release of MongoDB. Download the binaries from https://www.mongodb.org/downloads . For example, to download the latest release through the shell, issue the following: curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.4.tgz 22 Chapter 2. Install MongoDB