--quiet | # 安靜輸出 |
--port arg | # 指定服務(wù)端口號,默認(rèn)端口27017 |
--bind_ip arg | # 綁定服務(wù)IP,若綁定127.0.0.1,則只能本機訪問,不指定默認(rèn)本地所有IP |
--logpath arg | # 指定MongoDB日志文件,注意是指定文件不是目錄 |
--logappend | # 使用追加的方式寫日志 |
--pidfilepath arg | # PID File 的完整路徑,如果沒有設(shè)置,則沒有PID文件 |
--keyFile arg | # 集群的私鑰的完整路徑,只對于Replica Set 架構(gòu)有效 |
--unixSocketPrefix arg | # UNIX域套接字替代目錄,(默認(rèn)為 /tmp) |
--fork | # 以守護(hù)進(jìn)程的方式運行MongoDB,創(chuàng)建服務(wù)器進(jìn)程 |
--auth | # 啟用驗證 |
--cpu | # 定期顯示CPU的CPU利用率和iowait |
--dbpath arg | # 指定數(shù)據(jù)庫路徑 |
--diaglog arg | # diaglog選項 0=off 1=W 2=R 3=both 7=W+some reads |
--directoryperdb | # 設(shè)置每個數(shù)據(jù)庫將被保存在一個單獨的目錄 |
--journal | # 啟用日志選項,MongoDB的數(shù)據(jù)操作將會寫入到j(luò)ournal文件夾的文件里 |
--journalOptions arg | # 啟用日志診斷選項 |
--ipv6 | # 啟用IPv6選項 |
--jsonp | # 允許JSONP形式通過HTTP訪問(有安全影響) |
--maxConns arg | # 最大同時連接數(shù) 默認(rèn)2000 |
--noauth | # 不啟用驗證 |
--nohttpinterface | # 關(guān)閉http接口,默認(rèn)關(guān)閉27018端口訪問 |
--noprealloc | # 禁用數(shù)據(jù)文件預(yù)分配(往往影響性能) |
--noscripting | # 禁用腳本引擎 |
--notablescan | # 不允許表掃描 |
--nounixsocket | # 禁用Unix套接字監(jiān)聽 |
--nssize arg (=16) | # 設(shè)置信數(shù)據(jù)庫.ns文件大小(MB) |
--objcheck | # 在收到客戶數(shù)據(jù),檢查的有效性, |
--profile arg | # 檔案參數(shù) 0=off 1=slow, 2=all |
--quota | # 限制每個數(shù)據(jù)庫的文件數(shù),設(shè)置默認(rèn)為8 |
--quotaFiles arg | # number of files allower per db, requires --quota |
--rest | # 開啟簡單的rest API |
--repair | # 修復(fù)所有數(shù)據(jù)庫run repair on all dbs |
--repairpath arg | # 修復(fù)庫生成的文件的目錄,默認(rèn)為目錄名稱dbpath |
--slowms arg (=100) | # value of slow for profile and console log |
--smallfiles | # 使用較小的默認(rèn)文件 |
--syncdelay arg (=60) | # 數(shù)據(jù)寫入磁盤的時間秒數(shù)(0=never,不推薦) |
--sysinfo | # 打印一些診斷系統(tǒng)信息 |
--upgrade | # 如果需要升級數(shù)據(jù)庫 |