Created
July 23, 2016 13:03
-
-
Save wangtubs/08c7b44d3a081bb5578286b96b249aa1 to your computer and use it in GitHub Desktop.
mongodb conf file for mongodb 3.0 or more
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mongod.conf | |
# for documentation of all options, see: | |
# http://docs.mongodb.org/manual/reference/configuration-options/ | |
# Where and how to store data. | |
storage: | |
dbPath: /var/lib/mongodb | |
journal: | |
enabled: true | |
engine: wiredTiger | |
# mmapv1: | |
# wiredTiger: | |
# where to write logging data. | |
systemLog: | |
destination: file | |
logAppend: true | |
path: /var/log/mongodb/mongod.log | |
# network interfaces | |
net: | |
port: 27017 | |
bindIp: 127.0.0.1 | |
#processManagement: | |
#security: | |
#operationProfiling: | |
#replication: | |
replication: | |
oplogSizeMB: 100 | |
replSetName: rs0 | |
#sharding: | |
## Enterprise-Only Options: | |
#auditLog: | |
#snmp: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment