## 系统日志有关
systemLog:
destination: file
path: "/mongodb/log/mongodb.log" ## 日志位置
logAppend: true ## 日志以追加模式记录
## 数据存储有关
storage:
journal:
enabled: true
dbPath: "/mongodb/data" ## 数据路径位置
## 进程控制
processManagement:
fork: true
## pidFilePath: <string> ## pid文件的位置,一般不用配置,可以去掉这行,自动生成在data中
## 网络有关配置
net:
bindIp: 0.0.0.0 ## 监听地址,如果不配置这行监听在0.0.0.0
port: 27017 ## 端口号,默认不配置端口号是27017
## 安全验证有关配置
security:
authorization: enabled ## 是否打开用户名和密码验证
#############以下是复制集与分片集群有关########################
#replication:
# oplogSizeMB: <NUM>
# replSetName: "<REPSETNAME>"
# secondaryIndexPrefetch: "all"
#sharding:
# clusterRole: <string>
# archiveMovedChunks: <boolean>
## for mongos only
#replication:
# localPingThresholdMs: <int>
#sharding:
# configDB: <string>