您好,登錄后才能下訂單哦!
# mongod.conf
# 追加模式寫(xiě)入log
logpath=/var/log/mongodb/mongod.log
logappend=true
# 后臺(tái)運(yùn)行
fork=true
# 服務(wù)端口號(hào)
port=27013
# 數(shù)據(jù)庫(kù)文件存放目錄
dbpath=/var/lib/mongo
directoryperdb=true
# 進(jìn)程id文件的存放路徑
pidfilepath=/var/run/mongodb/mongod.pid
# 監(jiān)聽(tīng)I(yíng)P地址
bind_ip=0.0.0.0
# Disables write-ahead journaling
# nojournal=true
# 啟用定時(shí)記錄CPU的利用率和I/O等待
#cpu=true
# Turn on/off security. Off is currently the default
#noauth=true
#auth=true
# 詳細(xì)記錄輸出
#verbose=true
# 用于開(kāi)發(fā)驅(qū)動(dòng)程序時(shí)的檢查客戶(hù)端接收數(shù)據(jù)的有效性
#objcheck=true
# 啟用數(shù)據(jù)庫(kù)配額管理,默認(rèn)每個(gè)db可以有8個(gè)文件,可以用quotaFiles參數(shù)設(shè)置
#quota=true
# 設(shè)置oplog記錄等級(jí)
# 0=off (default)
# 1=W
# 2=R
# 3=both
# 7=W+some reads
#diaglog=0
# 忽略查詢(xún)提示
#nohints=true
# Enable the HTTP interface (Defaults to port 28017).
#httpinterface=true
# 關(guān)閉服務(wù)器端腳本,這將極大的限制功能
#noscripting=true
# 關(guān)閉掃描表,任何查詢(xún)將會(huì)是掃描失敗
#notablescan=true
# 關(guān)閉數(shù)據(jù)文件預(yù)分配
#noprealloc=true
# 為新數(shù)據(jù)庫(kù)指定.ns文件的大小,單位:MB
# nssize=<size>
# Replication Options
# in replicated mongo databases, specify the replica set name here
#replSet=setname
# maximum size in megabytes for replication operation log
#oplogSize=1024
# path to a key file storing authentication info for connections
# between replica set members
#keyFile=/path/to/keyfile
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。