summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
Diffstat (limited to 'rpm')
-rw-r--r--rpm/mongod.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/rpm/mongod.conf b/rpm/mongod.conf
index 060b08dff85..4bc97f1d5c6 100644
--- a/rpm/mongod.conf
+++ b/rpm/mongod.conf
@@ -15,6 +15,9 @@ dbpath=/var/lib/mongo
# location of pidfile
pidfilepath = /var/run/mongodb/mongod.pid
+# Listen to local interface only. Comment out to listen on all interfaces.
+bind_ip = 127.0.0.1
+
# Disables write-ahead journaling
# nojournal = true