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 Debian 

Overview Use this tutorial to install MongoDB from .deb packages on Debian 7 “Wheezy”. While Debian includes its own MongoDB packages, the official MongoDB packages are more up to date. 

MongoDB only provides packages for 64-bit Debian “Wheezy”. These packages may work with other Debian releases, but this is not a supported configuration. 

Packages MongoDB provides officially supported packages in their own repository. This repository contains the following packages: 

• mongodb-org 

This package is a metapackage that will automatically install the four component packages listed below. 

• mongodb-org-server 

This package contains the mongod daemon and associated configuration and init scripts. 

• mongodb-org-mongos 

This package contains the mongos daemon. 

• mongodb-org-shell 

This package contains the mongo shell. 

