mongodb啓動參數
/bin/mongod --help
--port arg specify port number
參數指定的端口號
--bind_ip arg comma separated list of ip addresses to listen on - all local ips by default
用逗號分隔的列表中的用於偵聽的IP地址 - 默認情況下所有本地IP
--maxConns arg max number of simultaneous connections
最大同時連接數
--logpath arg log file to send write to instead of stdout - has to be a file, not directory
代替stdout的日誌文件 - 是一個文件,而不是目錄
--logappend append to logpath instead of over-writing
追加方式寫入日誌,而不是覆蓋掉以前的
--pidfilepath arg full path to pidfile (if not set, no pidfile is created)
pid文件的完整路徑(如果沒有設置,不創建pid文件)
--keyFile arg private key for cluster authentication (only for replica sets)
集羣認證的私鑰(僅對副本集有效)
--unixSocketPrefix arg alternative directory for UNIX domain sockets (defaults to /tmp)
替代UNIX域套接字的目錄(默認是/tmp目錄)
--fork fork server process
創建一個服務器進程的方式啓動
--auth run with security
安全模式下運行
--cpu periodically show cpu and iowait utilization
定期顯示CPU和iowait利用率
--dbpath arg directory for datafiles
數據文件目錄
--diaglog arg 0=off 1=W 2=R 3=both 7=W+some reads
--directoryperdb each database will be stored in a separate directory
每個數據庫將被存儲在一個單獨的目錄
--journal enable journaling
允許調試
--journalOptions arg journal diagnostic options
調試診斷選項
--ipv6 enable IPv6 support (disabled by default)
啓用IPv6的支持(默認情況下禁用)
--jsonp allow JSONP access via http (has security implications)
允許JSONP通過HTTP訪問(有安全隱患)
--noauth run without security
非安全模式下運行
--nohttpinterface disable http interface
禁用HTTP接口
--noprealloc disable data file preallocation - will often hurt performance
禁用數據文件的預分配 - 往往會損害性能
--noscripting disable scripting engine
禁用腳本引擎
--notablescan do not allow table scans
不允許表掃描
--nounixsocket disable listening on unix sockets
禁用監聽Unix套接字
--nssize arg (=16) .ns file size (in MB) for new databases
新的數據庫的.ns文件的大小(單位:MB).
--objcheck inspect client data for validity on receipt
收到客戶端的數據後的有效性檢查
--profile arg 0=off 1=slow, 2=all
--quota limits each database to a certain number of files (8 default)
爲每個數據庫文件數量做限制(默認值8)
--quotaFiles arg number of files allower per db, requires --quota
每個數據庫文件限制的數量,需要--quota參數
--rest turn on simple rest api
打開其餘簡單的API
--repair run repair on all dbs
啓動時修復所有數據庫
--repairpath arg root directory for repair files - defaults to dbpath
修復文件的根目錄 - 默認取自--dbpath參數
--slowms arg (=100) value of slow for profile and console log
到profile和終端的日誌延遲毫秒數
--smallfiles use a smaller default file size
使用一個較小的默認文件大小
--syncdelay arg (=60) seconds between disk syncs (0=never, but not recommended)
同步到磁盤的間隔秒數(默認:60秒)(0=從不,但不推薦)
--sysinfo print some diagnostic system information
打印一些診斷系統信息
--upgrade upgrade db if needed
升級DB,如果需要的話
Replication options:
複製選項
--fastsync indicate that this instance is starting from a dbpath snapshot of the repl peer
表明,這個實例是從一個REPL同行DBPATH快照開始
--autoresync automatically resync if slave data is stale
如果從結點的數據是陳舊的就自動重新同步
--oplogSize arg size limit (in MB) for op log
操作日誌的大小(單位:MB)
Master/slave options:
主/從選項
--master master mode
主模式
--slave slave mode
從模式
--source arg when slave: specify master as <server:port>
當爲從結點時:指定主結點的位置<server:port>
--only arg when slave: specify a single database to replicate
當爲從結點時:指定需要複製的數據庫,不是全面都複製
--slavedelay arg specify delay (in seconds) to be used when applying master ops to slave
指定從節點同步主節點oplog的延遲(單位:秒)
Replica set options:
副本設置的選項
--replSet arg arg is <setname>[/<optionalseedhostlist>]
Sharding options:
分片選項
--configsvr declare this is a config db of a cluster; default port 27019; default dir /data/configdb
聲明這是一個集羣的配置服務器;默認端口 27019;默認目錄 /data/configdb
--shardsvr declare this is a shard db of a cluster; default port 27018
聲明這是一個集羣的分片服務器;默認端口: 27018
--noMoveParanoia turn off paranoid saving of data for moveChunk. this is on by default for now, but default will switch
mongodb啓動參數
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
震驚:蔡英文決定 為安倍「下半旗」,真的合理嗎?
SteveSapp9
2022-07-11 17:06:56
哪些因素会影响性欲?这些因素不容小觑
SteveSapp9
2022-07-04 20:32:20
台媒爆料“台版51區”興建“神秘”設施 “面積大到令人好奇”
SteveSapp9
2022-06-23 14:39:41
河北省公安廳發布關於陳某誌等涉嫌尋釁滋事、暴力毆打他人等案件偵辦進展情況的通報
LouisRodgers5773
2022-06-21 16:49:16
曼聯遇到障礙將克里斯蒂安·埃里克森帶到老特拉福德
ktn83
2022-06-18 07:55:27
如何提高性生活質量?這六個妙招快快學起來!
mugiseki2710
2022-06-17 15:34:42
UEFAチャンピオンズリーグ決勝戦、米で視聴者数が過去最高に
fikik75972
2022-06-16 23:48:20
wewerewrr werwerwer
pennyjhurd
2022-06-12 18:34:42
fds rew rewrewrewrew
mufajiqe
2022-06-12 18:04:40
Deep Lake Water Cooling System Market To Witness Huge Growth By 2030
chhidami.a.msg
2022-06-08 22:14:54
專家建議晚飯只吃七分飽,常見的胃病有哪些?
LouisRodgers5773
2022-06-08 15:16:23
No more authentication methods to try,Permission denied (publickey)
the5fire
2023-11-21 09:53:05
linux有磁盤空間卻顯示不足 linux中inode使用率過高處理辦法 linux中inode使用率過高處理辦法
故宮博物院
2022-12-25 14:18:39
24小時熱門文章