Skip to content

Instantly share code, notes, and snippets.

@shafayeatsumit
Created January 16, 2017 10:13
Show Gist options
  • Save shafayeatsumit/3218cb1964e523951e5fcfbadcd5f34c to your computer and use it in GitHub Desktop.
Save shafayeatsumit/3218cb1964e523951e5fcfbadcd5f34c to your computer and use it in GitHub Desktop.
mongodb config file in yml format
storage:
dbPath: "/data/db"
engine: "wiredTiger"
systemLog:
destination: file
path: "/var/log/mongodb.log"
logAppend: true
timeStampFormat: iso8601-utc
replication:
oplogSizeMB: 10240
replSetName: "rs1"
processManagement:
fork: true
net:
bindIp: "192.0.2.1,127.0.0.1"
port: 27018
security:
keyFile: "/data/key/rs1.key"
authorization: "enabled"
sharding:
clusterRole: "shardsvr"
setParameter:
enableLocalhostAuthBypass: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment