# 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 on 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 will result in greatly limited
# functionality
#noscripting=true
# turns off table scans. any query that 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