Lesson 2: Configuring MongoDB Servers / Learn

Code Summary: Configuring MongoDB Servers

Review the following code, which demonstrates how to edit the default configuration settings for mongod.

Edit Default Configuration Settings

Open the default configuration file with Nano, the Linux command line text editor:

sudo nano /etc/mongod.conf

After saving your changes to the default configuration settings, restart the mongod service:

sudo systemctl restart -l mongod