美文网首页
mongodb 启动参数配置

mongodb 启动参数配置

作者: Snowzhu007 | 来源:发表于2017-11-12 10:49 被阅读0次

    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.

    相关文章

      网友评论

          本文标题:mongodb 启动参数配置

          本文链接:https://www.haomeiwen.com/subject/ewenmxtx.html