# mongod.conf
#where to log
Logpath=/opt/mongodb/mongod.log
Logappend=true
# fork and run in background
Fork=true
port=27017
maxconns=5000
Quiet=true
nssize=2047
Dbpath=/mongo/replset/data
#dbpath =/opt/mongodb/replset/data
Profile=0
#slowms =100
#smallfiles =false
#master =true
# Location of Pidfile
Pidfilepath=/opt/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
Journal=true
# Enables periodic logging of CPU utilization and I/O wait
#cpu =true
# Turn on/off security. OFF is currently the default
#noauth =true
Auth=true
# Verbose logging output.
#verbose =true
# Inspect all client data for validity in receipt (useful for
# Developing drivers)
#objcheck =true
# Enable DB Quota Management
#quota =true
# Set oplogging level where n is
# 0=off (default)
# 1=w
# 2=r
# 3=both
# 7=w+some Reads
Diaglog=0
# Ignore Query Hints
#nohints =true
# Disable The HTTP interface (Defaults to localhost:27018).
#nohttpinterface =true
# Turns off server-side scripting. This would result in greatly limited
# functionality
#noscripting =true
# Turns off table scans. Any query this would do a table scan fails.
#notablescan =true
# Disable data File preallocation.
#noprealloc =true
# specify. ns file size for new databases.
# nssize=<size>
# Replication Options
# in replicated MONGO databases, specify the replica set name here
#replSet =repset
# maximum size in megabytes for replication operation log
oplogsize=1024
# Path to a key file storing authentication info for connections
# between replica set members
Keyfile=/opt/mongodb/keyfile
MongoDB configuration file