systemLog:
  destination: file
  logAppend: true
  path: /data/mongod/log/mongod-rs1.log

processManagement:
  fork: true
  pidFilePath: /data/mongod/log/mongod-rs1.pid
  timeZoneInfo: /usr/share/zoneinfo

net:
  port: 27018
  bindIp: 0.0.0.0
  maxIncomingConnections: 65535

security:
   keyFile: /usr/local/mongodb/etc/mongodb.key

storage:
  dbPath: /data/mongod/data
  journal:
    enabled: true
  engine:wiredTiger
  directoryPerDB: true

replication:
   oplogSizeMB: 10000
   replSetName: rs1

sharding:
   clusterRole: shardsvr

 

[THE END]

相关文章:

  • 2021-09-14
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2021-08-16
  • 2021-12-06
猜你喜欢
  • 2021-11-18
  • 2021-11-19
  • 2021-12-22
  • 2021-09-01
  • 2021-11-25
  • 2022-12-23
  • 2021-06-16
相关资源
相似解决方案