mongdb使用過程中,配置是很重要的,這篇文章我們將介紹一個簡單的mongdb配置:下篇文章我們介紹每個配置意義:
systemLog:
verbosity:integer
destination:file
path:""
quiet:true
logAppend:true
timeStampFormat:iso8601-utc
storage:
dbPath:""
directoryPerDB:true
indexBuildRetry:false
preallocDataFiles:true
nsSize:16
smallFiles:false
syncPeriodSecs:60
#quota:
#enforced:false
#maxFilesPerDB:8
journal:
enable:true
#debugFlages:1
commitIntervalMs:100
processManagement:
fork:true
pidFilePath:""
net:
bindIp:92.168.2.2
port:27017
#maxIncomingConnections:
#wireObjectCheck:
http:
enabled:true
RESTInterfaceEnabaled:false
#ssl:
#mode:"requireSSL"
#PEMKeyFile:""
operationProfiling:
slowOpThresholdMs:100
mode:"slowOp"
security:
keyFile:""
ClusterAuthMode:"keyFile"
authorization:"disabled"
replication:
oplogSizeMB:50
replSetName:"repl_test"
secondaryIndexPrefetch:"all"