首页 > 数据库技术 > 详细

mongodb配置

时间:2020-07-23 15:49:32      阅读:57      评论:0      收藏:0      [点我收藏+]

 

## content
systemLog:
  destination: file
  logAppend: false
  #path: /www/server/mongodb/log/config.log
  path: /dev/null
 
# Where and how to store data.
storage:
  dbPath: /www/server/mongodb/data
  directoryPerDB: true
  engine: wiredTiger
  wiredTiger:
    engineConfig:
      cacheSizeGB: 15
  journal:
    enabled: true
# how the process runs
processManagement:
  fork: true
  pidFilePath: /www/server/mongodb/log/configsvr.pid
 
# network interfaces
net:
  port: 27017
  bindIp: 127.0.0.1
 
#operationProfiling:
#replication:
#    replSetName: bt_main   
security:
  authorization: disabled
  javascriptEnabled: false

#sharding:
#    clusterRole: shardsvr

 

mongodb配置

原文:https://www.cnblogs.com/xiondun/p/13365293.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!