MongoDB Documentation, Release 3.0.4 Step 4: Restart MongoDB. You can restart the mongod process by issuing the following command: sudo service mongod restart You can follow the state of the process for errors or important messages by watching the output in the /var/log/mongodb/mongod.log file. 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. Step 3: Remove Data Directories. Remove MongoDB databases and log files. sudo rm -r /var/log/mongodb sudo rm -r /var/lib/mongo Install MongoDB on Amazon Linux sudo zypper remove $( rpm -qa | grep mongodb-org ) Overview Use this tutorial to install MongoDB on Amazon Linux from .rpm packages. This installation guide only supports 64-bit systems. See Platform Support (page 809) for details. Packages MongoDB provides officially supported packages in their own repository. This repository contains the following packages: This package contains the mongod daemon and associated configuration and init scripts. This package contains the mongos daemon. This package is a metapackage that will automatically install the four component packages listed below. • mongodb-org • mongodb-org-server • mongodb-org-mongos 13 2.3. Installation Guides