centos7 - mongodb3.6.5-配置文件

时间:2021-09-17 02:30:49

创建Linux管理员账号admin, 并加入wheel组,对mongodb, php等进行统一管理~

systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log

storage:
dbPath: /data/mongo
journal:
enabled: true

processManagement:
fork: true
pidFilePath: /var/run/mongodb/mongod.pid

net:
#bindIp: 0.0.0.0
#bindIpAll: true
bindIp: 127.0.0.1
port: 27017

security:
#authorization: enabled
authorization: disabled
javascriptEnabled: false