开发者社区 问答 正文

mongodb连接失败

MongoDB shell version v3.6.1
connecting to: mongodb://127.0.0.1:27017
2017-12-29T18:43:20.875+0800 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2017-12-29T18:43:20.875+0800 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:251:13
@(connect):1:6
exception: connect failed

展开
收起
wikeduo 2017-12-29 18:44:07 3626 分享 版权
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。

    题主您好,

    贴出来的信息中,好象是是提示不能连接到本地的 mongodb 数据库,

    请问您在服务器里安装了 mongodb 数据库了吗?是否有正常运行呢?

    2019-07-17 21:51:01
    赞同 展开评论