Type following command in command line terminal:
sudo nano /etc/mongodb.conf
This is based on an Ubuntu system.