mongondb配置参数
配置文件内容:
创新互联建站10多年成都企业网站定制服务;为您提供网站建设,网站制作,网页设计及高端网站定制服务,成都企业网站定制及推广,对石雕等多个行业拥有丰富的网站制作经验的网站建设公司。
cat /etc/MongoDB.conf
storage:
dbPath: "/data/databases/mongodb"
directoryPerDB: true
journal:
enabled: true
wiredTiger:
engineConfig:
cacheSizeGB: 100
systemLog:
destination: file
path: "/data/databases/mongodb/mongodb.log"
logRotate: rename
logAppend: true
timeStampFormat: iso8601-local
operationProfiling:
slowOpThresholdMs: 200
mode: slowOp
replication:
oplogSizeMB: 51200
replSetName: "rschunqiu"
processManagement:
fork: true
net:
bindIp: 0.0.0.0
port: 27017
security:
keyFile: "/data/databases/mongodb/mongodb-keyfile"
authorization: "enabled"
启动mongodb:
/usr/local/mongodb/bin/mongod --config /etc/mongodb.conf
分享名称:mongondb配置参数
网页链接:http://scyanting.com/article/pgocji.html