[
root@
ip
-
172
-
31
-
33
-
43 conf
]
#
more shard1
.
conf
創(chuàng)新互聯(lián)服務(wù)項(xiàng)目包括懷化網(wǎng)站建設(shè)、懷化網(wǎng)站制作、懷化網(wǎng)頁(yè)制作以及懷化網(wǎng)絡(luò)營(yíng)銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢(shì)、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,懷化網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到懷化省份的部分城市,未來相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!
# 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
標(biāo)題名稱:【Mongo】mongo配置文件
文章地址:http://chinadenli.net/article34/pigepe.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供關(guān)鍵詞優(yōu)化、小程序開發(fā)、、微信小程序、微信公眾號(hào)、營(yíng)銷型網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)