MongoDB configuration file

Source: Internet
Author: User
Tags mongodb

# 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

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.