search

Home  >  Q&A  >  body text

链接MongoDB Error: mongodb network is unreachable 如何解决?

昨天链接还是好用的,
今天链接就报错了, 百度问题尝试各种方法不好用, MongoDB服务没有尝试重启, 因为一直在用的服务.
求大神帮忙解决,或者给点思路 谢谢

MongoDB 是限制 IP 的, 所以没有AUTH.

習慣沉默習慣沉默2754 days ago1047

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:27:55

    First of all, for security reasons, it is recommended to turn on auth regardless of whether the IP is restricted or not. It is recommended to turn it on when appropriate.
    "It worked fine yesterday" and "The link reported an error today" are actually not necessarily related, right? Even if it was fine yesterday, it doesn't prove that there won't be any problems today or in the future. So just focus on the current issues. Sorry for being a bit verbose, I am a bit obsessive about logical rigor:)
    First check whether the process exists and whether the monitoring is normal:

    ps aux | grep mongod
    netstat -pln | grep mongod

    Usually the situation should be that mongod has been terminated. Please check your log for the specific reason. By default located at:

    /var/log/mongod.log

    If there are any modifications, please check them yourself. It is recommended to check the last situation of the log. You should see dbexit. Show the last 50 lines and let us continue the analysis.

    reply
    0
  • Cancelreply