In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail what the MongoDB startup parameters are, and the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
MongoDB startup parameters:
-- quiet # quiet output
-- port arg # specifies the service port number, default port 27017
-- bind_ip arg # bind service IP. If binding 127.0.0.1, it can only be accessed locally. Default local IP is not specified.
-- logpath arg # specifies the MongoDB log file. Note that the specified file is not a directory.
-- logappend # writes logs by appending
-- the full path of pidfilepath arg # PID File. If not set, there is no PID file.
-- the full path of the private key of the keyFile arg # cluster, valid only for Replica Set architecture
-- unixSocketPrefix arg # UNIX domain socket replacement directory (default is / tmp)
-- fork # runs MongoDB as a daemon to create a server process
-- auth # enable authentication
-- cpu # periodically displays the CPU utilization and iowait of CPU
-- dbpath arg # specify the database path
-- diaglog arg # diaglog option 0=off 1 "W 2R 3=both 7=W+some reads
-- directoryperdb # sets that each database will be saved in a separate directory
-- journal # enable the logging option, and the data operations of MongoDB will be written to the files in the journal folder
-- journalOptions arg # enable log diagnostics option
-- ipv6 # enable IPv6 option
-- jsonp # allows JSONP access via HTTP (with security implications)
-- maxConns arg # maximum number of simultaneous connections defaults to 2000
-- noauth # does not enable authentication
-- nohttpinterface # shuts down the http interface and port 27018 access is disabled by default
-- noprealloc # disables data file pre-allocation (often affecting performance)
-- noscripting # disable scripting engine
-- notablescan # does not allow table scanning
-- nounixsocket # disable Unix socket snooping
-- nssize arg (= 16) # set the letter database. ns file size (MB)
-- objcheck # checks the validity of customer data after receiving it
-- profile arg # Archive parameters 0=off 1=slow, 2=all
-- quota # limits the number of files per database. The default setting is 8.
-quotaFiles arg # number of files allower per db, requires-quota
-- rest # enable simple rest API
-- repair # repair all database run repair on all dbs
-- repairpath arg # the directory of the files generated by the repair library. The default is the directory name dbpath
-slowms arg (= 100) # value of slow for profile and console log
-- smallfiles # uses smaller default files
-- syncdelay arg (= 60) # seconds in which data is written to disk (0=never, not recommended)
-- sysinfo # print some diagnostic system information
-- upgrade # if you need to upgrade the database
* Replicaton parameters
-- fastsync # enables the slave library replication service from a dbpath whose database is a snapshot of the master library and can be used to quickly enable synchronization
-- autoresync # if the synchronization data between the slave library and the master database is much worse, it will be resynchronized automatically.
-- oplogSize arg # sets the size of the oplog (MB)
* Master / slave parameters
-- master # main library mode
-- slave # slave library mode
-- source arg # Slave Port number
-- only arg # specifies a single database replication
-- slavedelay arg # sets the delay time for synchronizing the master library from the library
* Replica set (replica set) option:
-- replSet arg # sets the replica set name
* Sharding (sharding) option
-- configsvr # declares that this is a cluster config service, default port 27019, default directory / data/configdb
-- shardsvr # declares that this is a cluster shard, default port 27018
-- noMoveParanoia # turn off paranoia for moveChunk data saving?
About what MongoDB startup parameters are shared here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un