linux mongodb 配置文件,MongoDB配置文件

PRIMARY节点:

[mongo@centos701 etc]$ cat mongod.conf

systemLog:

path: /usr/local/mongodb/log/mongod.log

logAppend: false

logRotate: rename

destination: file

timeStampFormat: iso8601-local

processManagement:

fork: true

net:

port: 27017

bindIp: 127.0.0.1,192.168.10.21

maxIncomingConnections: 20000

wireObjectCheck: true

ipv6: false

unixDomainSocket:

enabled: false

pathPrefix: /tmp

filePermissions: 0700

security:

authorization: enabled

javascriptEnabled: true

keyFile: /usr/local/mongodb/keyfile/key

storage:

dbPath: /usr/local/mongodb/data/db

indexBuildRetry: true

journal:

enabled: true

directoryPerDB: true

engine: wiredTiger

operationProfiling:

slowOpThresholdMs: 100

mode: off

replication:

oplogSizeMB: 2048

replSetName: bsbgpsrs

SECONDARY节点:

[mongo@centos702 etc]$ cat mongod.conf

systemLog:

path: /usr/local/mongodb/log/mongod.log

logAppend: false

logRotate: rename

destination: file

timeStampFormat: iso8601-local

processManagement:

fork: true

net:

port: 27017

bindIp: 127.0.0.1,192.168.10.22

maxIncomingConnections: 20000

wireObjectCheck: true

ipv6: false

unixDomainSocket:

enabled: false

pathPrefix: /tmp

filePermissions: 0700

security:

authorization: enabled

javascriptEnabled: true

keyFile: /usr/local/mongodb/keyfile/key

storage:

dbPath: /usr/local/mongodb/data/db

indexBuildRetry: true

journal:

enabled: true

directoryPerDB: true

engine: wiredTiger

operationProfiling:

slowOpThresholdMs: 100

mode: off

replication:

oplogSizeMB: 2048

replSetName: bsbgpsrs

ARBITER节点:

[mongo@centos703 etc]$ cat mongod.conf

systemLog:

path: /usr/local/mongodb/log/mongod.log

logAppend: false

logRotate: rename

destination: file

timeStampFormat: iso8601-local

processManagement:

fork: true

net:

port: 27017

bindIp: 127.0.0.1,192.168.10.23

maxIncomingConnections: 20000

wireObjectCheck: true

ipv6: false

unixDomainSocket:

enabled: false

pathPrefix: /tmp

filePermissions: 0700

security:

authorization: enabled

javascriptEnabled: true

keyFile: /usr/local/mongodb/keyfile/key

storage:

dbPath: /usr/local/mongodb/data/db

indexBuildRetry: true

journal:

enabled: true

directoryPerDB: true

engine: wiredTiger

operationProfiling:

slowOpThresholdMs: 100

mode: off

replication:

oplogSizeMB: 2048

replSetName: bsbgpsrs

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值