You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
519 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 数据库目录
dbpath = /usr/local/mongodb/db
# 绑定IP
bind_ip = 0.0.0.0
# 端口
port = 27017
# 日志文件
logpath = /usr/local/mongodb/log/mongod.log
# 日志追加方式
logappend = true
# write操作首先写入“日记”是一个数据安全的设置
journal = true
# 后台运行
fork = true
# 是否以安全认证方式运行,默认是不认证的非安全方式
noauth = true
# auth = true
# 是不是每个数据库一个目录
directoryperdb = true
# 最大连接数
maxConns = 10000