MongoDB configuration file

Source: Internet
Author: User

# 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.