MongoDB parameter Description

Source: Internet
Author: User
Tags auth mongodb unix domain socket
# Use the following command to view the service's startup parameters Mongod--help or mongod-h # Other command parameters * Basic Configuration---------------------------------------------------------- ---------------------Quiet # quiet output--port arg # Specifies the service port number, the default port 27017 the--BIND_IP ARG # binding service IP, and if the 127.0.0.1 is bound, only native access, no default local all IP --logpath arg # Specifies the MongoDB log file, note that the specified file is not a directory--logappend # Use the Append method to write the log--pidfilepath the full path of the arg # PID file, if not set, then no PID file--k The full path to the private key of the Eyfile ARG # cluster, only valid--unixsocketprefix arg # UNIX domain socket substitution directory for the replica Set schema, (Default/tmp)--fork # runs MongoDB as a daemon, creating Server process--auth # Enable authentication--cpu # Periodically display CPU utilization and iowait--dbpath arg # Specify database path--diaglog arg # diaglog option 0=off 1=w 2=r 3=both 7 = W+some reads--directoryperdb # Settings Each database will be saved in a separate directory--journal # enable logging options, MONGODB data operations will be written to the Journal folder file-- Journaloptions arg # Enable log diagnostics option--ipv6 # enable IPV6 option--jsonp # allow JSONP form via HTTP access (with security implications)--maxconns ARG # Maximum simultaneous connection number default for--noaut H # Do not enable authentication--nohttpinterface # Close HTTP interface, default turn off 27018 port Access--noprealloc # Disable data file pre-allocation (often affect performance)--noscripting # Disable script engine--notablescan # Do not allow table Scan--nounixsocket # Disables UNIX socket sniffing--nsSize arg (=16) # Set letter database. ns file Size (MB)--objcheck # on receipt of customer data, check validity,--profile arg # file Parameters 0=off 1=slow, 2=all--quota # Limit each database Number of files, set defaults to 8--quotafiles arg # of files Allower per db, requires--quota--rest # Open a simple rest API--repair # fix all databases R The directory of files generated by the UN repair on the all DBS--repairpath arg # Repair library, default to directory name DBPath--slowms arg (=100) # Value of slow for profile and cons OLE Log--smallfiles # Use a smaller default file--syncdelay arg (=60) # data to disk in seconds (0=never, not recommended)--sysinfo # Print Some diagnostic system Information--upgrade # If you need to rise Level database * Replicaton parameter-------------------------------------------------------------------------------Fastsync # Enable the Library Replication Service from a dbpath, the DBPath database is a snapshot of the main library and can be used to quickly enable synchronization--autoresync # If you synchronize data from a library to the main library, automatically resynchronize,--oplogsize arg # Set the size of the Oplog (MB) * Master/from parameter-------------------------------------------------------------------------------Master # Main Library mode--slave # from library mode- SOURCE Arg # from the Library port number--only arg # Specify a single database replication--slavedelay ARG # Set the delay time from the Library synchronization main Library * Replica set (replica set) option:------------------------ -------------------------------------------------------Replset arg # sets the replica set name * Sharding (fragmentation) option--------------------------------------------------------------- ----------------Configsvr # declares that this is a cluster config service, the default port 27019, the default directory/data/configdb--shardsvr # declares that this is a cluster fragment, the default port 27018-- Nomoveparanoia # Off bigotry for movechunk data preservation? # All of the above parameters can be written to the mongod.conf configuration document for example: DBPath =/data/mongodb LogPath =/data/mongodb/mongodb.log Logappend = True Port = 27017 F Ork = True Auth = True
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.