# mongod.conf
# Append mode writes log
Logpath=/var/log/mongodb/mongod.log
Logappend=true
# Run in the background
Fork=true
# Service port number
port=27013
# Database File storage directory
Dbpath=/var/lib/mongo
Directoryperdb=true
# storage path for process ID files
Pidfilepath=/var/run/mongodb/mongod.pid
# Listen for IP address
bind_ip=0.0.0.0
# Disables Write-ahead journaling
# Nojournal=true
# Enable timed logging of CPU utilization and I/O waits
#cpu =true
# Turn on/off security. OFF is currently the default
#noauth =true
#auth =true
# Verbose record output
#verbose =true
# Check the validity of the client receiving data when developing the driver
#objcheck =true
# Enable database quota management, the default per db can have 8 files, can be set with the Quotafiles parameter
#quota =true
# Set Oplog record level
# 0=off (default)
# 1=w
# 2=r
# 3=both
# 7=w+some Reads
#diaglog =0
# Ignore Query hints
#nohints =true
# Enable The HTTP interface (Defaults to Port 28017).
#httpinterface =true
# Close the server-side script, which will greatly limit the functionality
#noscripting =true
# Close Scan table, any query will be scan failed
#notablescan =true
# Close data file pre-allocation
#noprealloc =true
# Specify the size of the. ns file for the new database, in MB
# nssize=<size>
# Replication Options
# in replicated MONGO databases, specify the replica set name here
#replSet =setname
# 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 =/path/to/keyfile
MongoDB configuration file