[mongodb/el5] clean up the config file

Nathaniel McCallum npmccallum at fedoraproject.org
Fri Feb 3 21:02:20 UTC 2012


commit 25091a6d38fb58221f4ae2dcc3fed3526f88408a
Author: Nathaniel McCallum <nathaniel at themccallums.org>
Date:   Fri Feb 3 16:02:06 2012 -0500

    clean up the config file

 mongodb.conf |   32 +++++++++++---------------------
 1 files changed, 11 insertions(+), 21 deletions(-)
---
diff --git a/mongodb.conf b/mongodb.conf
index 36870b6..2a0e389 100644
--- a/mongodb.conf
+++ b/mongodb.conf
@@ -1,17 +1,13 @@
-# mongodb.conf
-
-#where to log
-logpath=/var/log/mongodb/mongodb.log
-
-# fork and run in background
-fork = true
-
+##
+### Basic Defaults
+##
 bind_ip = 127.0.0.1
-#port = 27017
-
-dbpath=/var/lib/mongodb
-
-pidfilepath=/var/run/mongodb/mongodb.pid
+port = 27017
+fork = true
+pidfilepath = /var/run/mongodb/mongodb.pid
+logpath = /var/log/mongodb/mongodb.log
+dbpath =/var/lib/mongodb
+journal = true
 
 # Enables periodic logging of CPU utilization and I/O wait
 #cpu = true
@@ -44,8 +40,8 @@ pidfilepath=/var/run/mongodb/mongodb.pid
 # Ignore query hints
 #nohints = true
 
-# Disable the HTTP interface (Defaults to localhost:27018).
-#nohttpinterface = true
+# Disable the HTTP interface (Defaults to port+1000).
+nohttpinterface = true
 
 # Turns off server-side scripting.  This will result in greatly limited
 # functionality
@@ -90,9 +86,3 @@ pidfilepath=/var/run/mongodb/mongodb.pid
 #oplogSize = <MB>
 # Size limit for in-memory storage of op ids.
 #opIdMem = <bytes>
-
-# Journal by default
-journal = true
-
-# Disable http by default
-nohttpinterface = true


More information about the scm-commits mailing list