D: \> Cd MongoDB
D: \ MongoDB> mongod -- Help
** Note: When Using MongoDB 32 bit, you are limited to about 2 gigabytes of data
** See
Http://blog.mongodb.org/post/137788967/32-bit-limitations
** With -- dur, the limit is lower
Allowed options:
General options:
-H [-- help] Show this usage information
-- Version show version information
-F [-- config] Arg configuration file specifying additional options
-V [-- verbose] Be more verbose (include multiple times for more
Verbosity e.g.-vvvvv)
-- Quiet quieter output
-- Port Arg specify port number
-- Bind_ip Arg comma separated list of IP addresses to listen on-all
Local IPs by default
-- 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
-- Logappend append to logpath instead of over-Writing
-- Pidfilepath Arg full path to pidfile (if not set, no pidfile is
Created)
-- Keyfile Arg private key for cluster authentication (only
Replica sets)
-- Auth run with security
-- CPU periodically show CPU and iowait Utilization
-- 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)
-- Jsonp allow jsonp access via HTTP (has security implications)
-- Noauth run without security
-- Nohttpinterface disable HTTP interface
-- Noprealloc disable data file preallocation-will often hurt
Performance
-- Noscripting disable Scripting Engine
-- Notablescan do not allow table scans
-- Nssize Arg (= 16). Ns file size (in MB) for new databases
-- Objcheck inspect client data for validity on receept
-- Profile Arg 0 = off 1 = slow, 2 = all
-- Quota limits each database to a certain number of files (8
Default)
-- Quotafiles Arg number of files allower per dB, requires -- quota
-- Rest turn on simple rest API
-- Repair run repair on all DBS
-- Repairpath Arg root directory for repair files-defaults to dbpath
-- Slowms Arg (= 100) value of slow for profile and console log
-- Smallfiles use a smaller default file size
-- Syncdelay Arg (= 60) seconds between disk syncs (0 = never, but not
Recommended)
-- Sysinfo print some diagnostic system information
-- Upgrade DB if needed
Windows Service Control Manager options:
-- Install MongoDB Service
-- Remove MongoDB Service
-- Reinstall MongoDB Service (equivilant of mongod
-- Remove followed by mongod -- install)
-- Servicename Arg Windows Service name
-- Servicedisplayname Arg Windows Service display name
-- Servicedescription Arg Windows Service Description
-- Serviceuser Arg user name service executes
-- Servicepassword Arg password used to authenticate serviceuser
Replication options:
-- Fastsync indicate that this instance is starting from a dbpath
Snapshot of the repl peer
-- Autoresync automatically Resync if Slave Data is stale
-- Oplogsize Arg size limit (in MB) for OP log
Master/Slave options:
-- Master mode
-- 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
Replica set options:
-- Replset Arg is <setname> [/<optionalseedhostlist>]
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
-- Nomoveparanoia turn off paranoid saving of data for movechunk. This
Is on by default for now, but default will switch
D: \ MongoDB>