温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

mongodb 配置文件

发布时间:2020-07-04 08:49:18 来源:网络 阅读:314 作者:990653058 栏目:MongoDB数据库

# mongod.conf
# 追加模式写入log
logpath=/var/log/mongodb/mongod.log
logappend=true

# 后台运行
fork=true

# 服务端口号
port=27013

# 数据库文件存放目录
dbpath=/var/lib/mongo
directoryperdb=true

# 进程id文件的存放路径
pidfilepath=/var/run/mongodb/mongod.pid

# 监听IP地址
bind_ip=0.0.0.0

# Disables write-ahead journaling
# nojournal=true

# 启用定时记录CPU的利用率和I/O等待
#cpu=true

# Turn on/off security.  Off is currently the default
#noauth=true
#auth=true

# 详细记录输出
#verbose=true

# 用于开发驱动程序时的检查客户端接收数据的有效性
#objcheck=true

# 启用数据库配额管理,默认每个db可以有8个文件,可以用quotaFiles参数设置
#quota=true

#   设置oplog记录等级
#   0=off (default)
#   1=W
#   2=R
#   3=both
#   7=W+some reads
#diaglog=0

# 忽略查询提示
#nohints=true

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

# 关闭服务器端脚本,这将极大的限制功能  
#noscripting=true

# 关闭扫描表,任何查询将会是扫描失败
#notablescan=true

# 关闭数据文件预分配
#noprealloc=true

# 为新数据库指定.ns文件的大小,单位:MB
# nssize=<size>
# 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

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI