Editing /etc/mongodb.conf
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
+ | <pre> | ||
+ | # mongodb.conf | ||
+ | |||
+ | # Where to store the data. | ||
+ | dbpath=/var/lib/mongodb | ||
+ | |||
+ | #where to log | ||
+ | logpath=/var/log/mongodb/mongodb.log | ||
+ | |||
+ | logappend=true | ||
− | + | bind_ip = 127.0.0.1 | |
− | + | #port = 27017 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | # Enable journaling, http://www.mongodb.org/display/DOCS/Journaling | |
− | + | 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 diagnostic logging level where n is | |
− | + | # 0=off (default) | |
− | + | # 1=W | |
− | + | # 2=R | |
− | + | # 3=both | |
− | + | # 7=W+some reads | |
− | + | #diaglog = 0 | |
− | |||
# Diagnostic/debugging option | # Diagnostic/debugging option | ||
#nocursors = true | #nocursors = true |
Advertising: