mongodb 启动参数配置

1,新增configure文件


mongodb 启动参数配置_第1张图片

systemLog:

destination: file

path: /usr/local/var/log/mongodb/mongo.log

logAppend: true

storage:

dbPath: /usr/local/var/mongodb

net:

bindIp: 127.0.0.1

2,启动 

mongod --config mongod.conf


mongodb 启动参数配置_第2张图片

3,成功了

点击 http://localhost:27017 :It looks like you are trying to access MongoDB over HTTP on the native driver port.

mongodb 启动参数配置_第3张图片

你可能感兴趣的:(mongodb 启动参数配置)