summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/mongodb.conf3
-rw-r--r--rpm/mongod.conf3
2 files changed, 6 insertions, 0 deletions
diff --git a/debian/mongodb.conf b/debian/mongodb.conf
index 87d5f716c1d..62e78915f02 100644
--- a/debian/mongodb.conf
+++ b/debian/mongodb.conf
@@ -14,6 +14,9 @@ logappend=true
#port = 27017
+# Listen to local interface only. Comment out to listen on all interfaces.
+bind_ip = 127.0.0.1
+
# Disables write-ahead journaling
# nojournal = true
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