Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mongodb profile

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

# mongod.conf

# write log in append mode

Logpath=/var/log/mongodb/mongod.log

Logappend=true

# running in the background

Fork=true

# Service port number

Port=27013

# Database file storage directory

Dbpath=/var/lib/mongo

Directoryperdb=true

# the storage path of the process id file

Pidfilepath=/var/run/mongodb/mongod.pid

# listening on IP address

Bind_ip=0.0.0.0

# Disables write-ahead journaling

# nojournal=true

# enable timed recording of CPU utilization and Icano wait

# cpu=true

# Turn on/off security. Off is currently the default

# noauth=true

# auth=true

# detailed record output

# verbose=true

# used to check the validity of data received by the client when developing the driver

# objcheck=true

# enable database quota management. By default, each db can have 8 files, which can be set with the quotaFiles parameter.

# quota=true

# set oplog record level

# 0=off (default)

# 1 / W

# 2r

# 3=both

# 7=W+some reads

# diaglog=0

# ignore query hints

# nohints=true

# Enable the HTTP interface (Defaults to port 28017).

# httpinterface=true

# turn off server-side scripts, which will greatly limit the functionality

# noscripting=true

# turn off scanning table, any query will cause scan failure

# notablescan=true

# turn off data file pre-allocation

# noprealloc=true

# specify the size of the .ns file for the new database, in MB

# nssize=

# Replication Options

# in replicated mongo databases, specify the replica set name here

# replSet=setname

# maximum size in megabytes for replication operation log

# oplogSize=1024

# path to a key file storing authentication info for connections

# between replica set members

# keyFile=/path/to/keyfile

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report