1,新增configure文件
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
3,成功了
点击 http://localhost:27017 :It looks like you are trying to access MongoDB over HTTP on the native driver port.