您好,登錄后才能下訂單哦!
[
root@
ip
-
172
-
31
-
33
-
43 conf
]
#
more shard1
.
conf
# where to write logging data
.
systemLog
:
destination
:
file
logAppend
:
true
path
:
/data/shard1/log/shard1
.
log
# Where
and
how to store data
.
storage
:
dbPath
:
/data/shard1/data
journal
:
enabled
:
true
wiredTiger
:
engineConfig
:
cacheSizeGB
:
5 ##限制內(nèi)存使用大小
# how the process runs
processManagement
:
fork
:
true
pidFilePath
:
/data/shard1/log/shard1
.
pid
# network interfaces
net
:
port
:
27001
bindIp
:
172
.
31
.
33
.
43
#security
:
# authorization
:
enabled
#operationProfiling
:
replication
:
replSetName
:
shard1
sharding
:
clusterRole : shardsvr
security: ###開啟權(quán)限認(rèn)證
keyFile: /usr/local/mongodb/keyfile
authorization: enabled
[
root@
ip
-
172
-
31
-
33
-
43 conf
]
#
more config
.
conf
## content
systemLog
:
destination
:
file
logAppend
:
true
path
:
/data/config/log/config
.
log
# Where
and
how to store data
.
storage
:
dbPath
:
/data/config/data
journal
:
enabled
:
true
# how the process runs
processManagement
:
fork
:
true
pidFilePath
:
/data/config/log/configsrv
.
pid
# network interfaces
net
:
port
:
21000
bindIp
:
172
.
31
.
33
.
43
#operationProfiling
:
replication
:
replSetName
:
config
sharding
:
clusterRole
:
configsvr
[
root@
ip
-
172
-
31
-
33
-
43 conf
]
#
more mongos
.
conf
systemLog
:
destination
:
file
logAppend
:
true
path
:
/data/mongos/log/mongos
.
log
processManagement
:
fork
:
true
# network interfaces
net
:
port
:
20000
bindIp
:
172
.
31
.
33
.
43
#監(jiān)聽的配置服務(wù)器
,
只能有1個(gè)或者3個(gè) configs為配置服務(wù)器的副本集名字
sharding
:
configDB : config/172 . 31 . 33 . 43 : 21000 , 172 . 31 . 45 . 127 : 21000 , 172 . 31 . 36 . 162 : 21000
port
=
27017
dbpath
=
/
data/mongodb/data
logpath
=
/
data/mongodb/logs/mongodb
.
log
pidfilepath
=
/
data/mongodb/logs/mongodb
.
pid
logappend
=
true
auth
=
true
fork
=
true
wiredTigerCacheSizeGB = 20
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。