欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

【Mongo】mongo配置文件

大于等于3.2按這種寫法

  1. [ 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ù)獲得客戶的支持與信任!

  2. # where to write logging data .

  3. systemLog :

  4.   destination : file

  5.   logAppend : true

  6.   path : /data/shard1/log/shard1 . log

  7.  

  8. # Where and how to store data .

  9. storage :

  10.   dbPath : /data/shard1/data

  11.   journal :

  12.     enabled : true

  13.   wiredTiger :

  14.     engineConfig :

  15.         cacheSizeGB : 5   ##限制內(nèi)存使用大小

  16. # how the process runs

  17. processManagement :

  18.   fork : true

  19.   pidFilePath : /data/shard1/log/shard1 . pid

  20.  

  21. # network interfaces

  22. net :

  23.   port : 27001

  24.   bindIp : 172 . 31 . 33 . 43

  25. #security :

  26. #  authorization : enabled

  27. #operationProfiling :

  28. replication :

  29.     replSetName : shard1

  30. sharding :

  31.     clusterRole : shardsvr

security:                   ###開啟權(quán)限認(rèn)證

    keyFile: /usr/local/MongoDB/keyfile

    authorization: enabled

  1. [ root@ ip - 172 - 31 - 33 - 43 conf ] # more config . conf

  2. ## content

  3. systemLog :

  4.   destination : file

  5.   logAppend : true

  6.   path : /data/config/log/config . log

  7.  

  8. # Where and how to store data .

  9. storage :

  10.   dbPath : /data/config/data

  11.   journal :

  12.     enabled : true

  13. # how the process runs

  14. processManagement :

  15.   fork : true

  16.   pidFilePath : /data/config/log/configsrv . pid

  17.  

  18. # network interfaces

  19. net :

  20.   port : 21000

  21.   bindIp : 172 . 31 . 33 . 43

  22.  

  23. #operationProfiling :

  24. replication :

  25.     replSetName : config

  26. sharding :

  27.     clusterRole : configsvr

  28. [ root@ ip - 172 - 31 - 33 - 43 conf ] # more mongos . conf

  29. systemLog :

  30.   destination : file

  31.   logAppend : true

  32.   path : /data/mongos/log/mongos . log

  33. processManagement :

  34.   fork : true

  35.  

  36. # network interfaces

  37.   

  38. net :

  39.   port : 20000

  40.   bindIp : 172 . 31 . 33 . 43

  41. #監(jiān)聽的配置服務(wù)器 , 只能有1個(gè)或者3個(gè) configs為配置服務(wù)器的副本集名字

  42. sharding :

  43.    configDB : config/172 . 31 . 33 . 43 : 21000 , 172 . 31 . 45 . 127 : 21000 , 172 . 31 . 36 . 162 : 21000


小于3.2一般按這種格式
  1. port = 27017

  2. dbpath = / data/mongodb/data

  3. logpath = / data/mongodb/logs/mongodb . log

  4. pidfilepath = / data/mongodb/logs/mongodb . pid

  5. logappend = true

  6. auth = true

  7. fork = true

  8. 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)

綿陽(yáng)服務(wù)器托管