Code Monkey home page Code Monkey logo

Comments (3)

1ch0 avatar 1ch0 commented on August 25, 2024

mongodb显示网络超时,连接的实例为无账号密码的,mongodb://127.0.0.1:27017

测试连接无账号密码本地 MongoDB 正常,你需要确认一下你本地的 MongoDB 服务是否启动正常,可以先用 MongoDB Compass 等工具连接测试一下。

from mayfly-go.

qvc180 avatar qvc180 commented on August 25, 2024

我这还是显示网络超时,但是用其他工具是正常的,请问在哪能看到相关的日志?我在nohup.out里没看到MongoDB相关的连接日志

from mayfly-go.

1ch0 avatar 1ch0 commented on August 25, 2024

我觉得应该还是你应用启动环境的问题,应用启用的环境无法正常连接 mongo 数据库。你可以写个简单 mongo client 在 mayfly-go 启动环境中去试试能不能连上 mongo 数据库。
日志的话数据库的连接应该也只有一个操作,你填好数据然后 mayfly-go 去调用 mongo client 去连接数据库,这个操作本身也就只有连接成功跟连接失败两种状态。

from mayfly-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.