MongoDB Documentation  Release 3.0.4 Step 3: Stop MongoDB. As needed  you can stop the mongod process by issuing the following command: sudo service mongod stop 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. To completely remove MongoDB from a system  you must remove the MongoDB applications themselves  the con- figuration 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 yum erase $( rpm -qa | grep mongodb-enterprise ) Step 3: Remove Data Directories. Remove MongoDB databases and log files. sudo rm -r /var/log/mongodb sudo rm -r /var/lib/mongo Use this tutorial to install MongoDB Enterprise 18 on LTS Ubuntu Linux systems from .deb packages. Platform Support Overview Install MongoDB Enterprise on Ubuntu 37 2.3. Installation Guides $^{18}$https://www.mongodb.com/products/mongodb-enterprise-advanced?jmp=docs Uninstall MongoDB