MongoDB usage

mongod.exe [options]

Options:

General options:
  -h [ --help ]                         show this usage information
  --version                             show version information
  -f [ --config ] arg                   configuration file specifying additional options
  -v [ --verbose ] [=arg(=v)]           be more verbose (include multiple times for more verbosity e.g. -vvvvv)
  --quiet                               quieter output
  --port arg                            specify port number - 27017 by default
  --bind_ip arg                         comma separated list of ip addresses to listen on - localhost by default
  --bind_ip_all                         bind to all ip addresses
  --ipv6                                enable IPv6 support (disabled by default)
  --listenBacklog arg (=2147483647)     set socket listen backlog size
  --maxConns arg                        max number of simultaneous connections - 1000000 by default
  --logpath arg                         log file to send write to instead of stdout - has to be a file, not directory
  --logappend                           append to logpath instead of over-writing
  --logRotate arg                       set the log rotation behavior (rename|reopen)
  --timeStampFormat arg                 Desired format for timestamps in log messages. One of ctime, iso8601-utc or iso8601-local  pidfile is created)
  --timeZoneInfo arg                    full path to time zone info directory, e.g. /usr/share/zoneinfo
  --keyFile arg                         private key for cluster authentication
  --noauth                              run without security
  --setParameter arg                    Set a configurable parameter
  --transitionToAuth                    For rolling access control upgrade. Attempt to authenticate over outgoing connections and proceed regardless of success. Accept incoming connections with or without authentication.
  --clusterAuthMode arg                 Authentication mode used for cluster authentication. Alternatives are (keyFile|sendKeyFile|sendX509|x509)
  --networkMessageCompressors [=arg(=disabled)] (=snappy) Comma-separated list of compressors to use for network messages
  --auth                                run with security
  --clusterIpSourceWhitelist arg        Network CIDR specification of permitted origin for `__system` access.
  --slowms arg (=100)                   value of slow for profile and console log
  --slowOpSampleRate arg (=1)           fraction of slow ops to include in the profile and console log
  --profile arg                         0=off 1=slow, 2=all
  --cpu                                 periodically show cpu and iowait utilization print some diagnostic system information
  --noIndexBuildRetry                   don't retry any index builds that were interrupted by shutdown
  --noscripting                         disable scripting engine
  --notablescan                         do not allow table scans

Windows Service Control Manager options:
  --install                             install Windows service
  --remove                              remove Windows service
  --reinstall                           reinstall Windows service (equivalent 
                                        to --remove followed by --install)
  --serviceName arg                     Windows service name
  --serviceDisplayName arg              Windows service display name
  --serviceDescription arg              Windows service description
  --serviceUser arg                     account for service execution
  --servicePassword arg                 password used to authenticate 
                                        serviceUser

Replication options:
  --oplogSize arg                       size to use (in MB) for replication op 
                                        log. default is 5% of disk space (i.e. 
                                        large is good)

Master/slave options (old; use replica sets instead):
  --master                              master mode
  --slave                               slave mode
  --source arg                          when slave: specify master as 
                                        <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
  --autoresync                          automatically resync if slave data is 
                                        stale

Replica set options:
  --replSet arg                         arg is <setname>[/<optionalseedhostlist
                                        >]
  --replIndexPrefetch arg               specify index prefetching behavior (if 
                                        secondary) [none|_id_only|all]
  --enableMajorityReadConcern [=arg(=1)] (=1)
                                        enables majority readConcern

Sharding options:
  --configsvr                           declare this is a config db of a 
                                        cluster; default port 27019; default 
                                        dir /data/configdb
  --shardsvr                            declare this is a shard db of a 
                                        cluster; default port 27018

SSL options:
  --sslOnNormalPorts                    use ssl on configured ports
  --sslMode arg                         set the SSL operation mode 
                                        (disabled|allowSSL|preferSSL|requireSSL
                                        )
  --sslPEMKeyFile arg                   PEM file for ssl
  --sslPEMKeyPassword arg               PEM file password
  --sslClusterFile arg                  Key file for internal SSL 
                                        authentication
  --sslClusterPassword arg              Internal authentication key file 
                                        password
  --sslCAFile arg                       Certificate Authority file for SSL
  --sslCRLFile arg                      Certificate Revocation List file for 
                                        SSL
  --sslDisabledProtocols arg            Comma separated list of TLS protocols 
                                        to disable [TLS1_0,TLS1_1,TLS1_2]
  --sslWeakCertificateValidation        allow client to connect without 
                                        presenting a certificate
  --sslAllowConnectionsWithoutCertificates 
                                        allow client to connect without 
                                        presenting a certificate
  --sslAllowInvalidHostnames            Allow server certificates to provide 
                                        non-matching hostnames
  --sslAllowInvalidCertificates         allow connections to servers with 
                                        invalid certificates
  --sslFIPSMode                         activate FIPS 140-2 mode at startup

Storage options:
  --storageEngine arg                   what storage engine to use - defaults 
                                        to wiredTiger if no data files present
  --dbpath arg                          directory for datafiles - defaults to 
                                        \data\db\ which is D:\data\db\ based on
                                        the current working drive
  --directoryperdb                      each database will be stored in a 
                                        separate directory
  --noprealloc                          disable data file preallocation - will 
                                        often hurt performance
  --nssize arg (=16)                    .ns file size (in MB) for new databases
  --quota                               limits each database to a certain 
                                        number of files (8 default)
  --quotaFiles arg                      number of files allowed per db, implies
                                        --quota
  --smallfiles                          use a smaller default file size
  --syncdelay arg (=60)                 seconds between disk syncs (0=never, 
                                        but not recommended)
  --upgrade                             upgrade db if needed
  --repair                              run repair on all dbs
  --repairpath arg                      root directory for repair files - 
                                        defaults to dbpath
  --journal                             enable journaling
  --nojournal                           disable journaling (journaling is on by
                                        default for 64 bit)
  --journalOptions arg                  journal diagnostic options
  --journalCommitInterval arg           how often to group/batch commit (ms)

WiredTiger options:
  --wiredTigerCacheSizeGB arg           maximum amount of memory to allocate 
                                        for cache; defaults to 1/2 of physical 
                                        RAM
  --wiredTigerJournalCompressor arg (=snappy)
                                        use a compressor for log records 
                                        [none|snappy|zlib]
  --wiredTigerDirectoryForIndexes       Put indexes and data in different 
                                        directories
  --wiredTigerCollectionBlockCompressor arg (=snappy)
                                        block compression algorithm for 
                                        collection data [none|snappy|zlib]
  --wiredTigerIndexPrefixCompression arg (=1)
                                        use prefix compression on row-store 
                                        leaf pages


?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市屠尊,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌棺榔,老刑警劉巖,帶你破解...
    沈念sama閱讀 206,968評論 6 482
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件变泄,死亡現(xiàn)場離奇詭異灯节,居然都是意外死亡汁掠,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,601評論 2 382
  • 文/潘曉璐 我一進(jìn)店門魂务,熙熙樓的掌柜王于貴愁眉苦臉地迎上來曼验,“玉大人,你說我怎么就攤上這事粘姜◎纪眨” “怎么了?”我有些...
    開封第一講書人閱讀 153,220評論 0 344
  • 文/不壞的土叔 我叫張陵相艇,是天一觀的道長颖杏。 經(jīng)常有香客問我,道長坛芽,這世上最難降的妖魔是什么留储? 我笑而不...
    開封第一講書人閱讀 55,416評論 1 279
  • 正文 為了忘掉前任,我火速辦了婚禮咙轩,結(jié)果婚禮上获讳,老公的妹妹穿的比我還像新娘。我一直安慰自己活喊,他們只是感情好丐膝,可當(dāng)我...
    茶點故事閱讀 64,425評論 5 374
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般帅矗。 火紅的嫁衣襯著肌膚如雪偎肃。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,144評論 1 285
  • 那天浑此,我揣著相機(jī)與錄音累颂,去河邊找鬼。 笑死凛俱,一個胖子當(dāng)著我的面吹牛紊馏,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播蒲犬,決...
    沈念sama閱讀 38,432評論 3 401
  • 文/蒼蘭香墨 我猛地睜開眼朱监,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了原叮?” 一聲冷哼從身側(cè)響起赌朋,我...
    開封第一講書人閱讀 37,088評論 0 261
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎篇裁,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體赡若,經(jīng)...
    沈念sama閱讀 43,586評論 1 300
  • 正文 獨居荒郊野嶺守林人離奇死亡达布,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,028評論 2 325
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了逾冬。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片黍聂。...
    茶點故事閱讀 38,137評論 1 334
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖身腻,靈堂內(nèi)的尸體忽然破棺而出产还,到底是詐尸還是另有隱情,我是刑警寧澤嘀趟,帶...
    沈念sama閱讀 33,783評論 4 324
  • 正文 年R本政府宣布脐区,位于F島的核電站,受9級特大地震影響她按,放射性物質(zhì)發(fā)生泄漏牛隅。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 39,343評論 3 307
  • 文/蒙蒙 一酌泰、第九天 我趴在偏房一處隱蔽的房頂上張望媒佣。 院中可真熱鬧,春花似錦陵刹、人聲如沸默伍。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,333評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽也糊。三九已至炼蹦,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間显设,已是汗流浹背框弛。 一陣腳步聲響...
    開封第一講書人閱讀 31,559評論 1 262
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點兒被人妖公主榨干…… 1. 我叫王不留捕捂,地道東北人瑟枫。 一個月前我還...
    沈念sama閱讀 45,595評論 2 355
  • 正文 我出身青樓,卻偏偏與公主長得像指攒,于是被迫代替她去往敵國和親慷妙。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 42,901評論 2 345

推薦閱讀更多精彩內(nèi)容

  • mongodb 安裝 下載地址 http://www.mongodb.org/downloads 安裝指南 htt...
    markahcn閱讀 2,671評論 0 4
  • http://www.cnblogs.com/snake-hand/p/3172376.html 1)允悦、下載Mon...
    comeluder閱讀 844評論 0 1
  • 下載鏈接:https://www.mongodb.com/download-center#enterprise M...
    創(chuàng)Chen閱讀 1,039評論 0 3
  • NoSql數(shù)據(jù)庫優(yōu)缺點 在優(yōu)勢方面主要體現(xiàn)在下面幾點: 簡單的擴(kuò)展 快速的讀寫 低廉的成本 靈活的數(shù)據(jù)模型 在不足...
    dreamer_lk閱讀 2,705評論 0 6
  • 聽家人說這周一下午錯過了精彩的學(xué)習(xí)會膝擂,今天下班后,我對書本內(nèi)容進(jìn)行了自我學(xué)習(xí)和自我吸收隙弛。作為人架馋,何為正確,我反...
    羅銀丹閱讀 496評論 0 0