MongoDB on a Windows 7 machine: No connection could be made

前端 未结 14 1685
渐次进展
渐次进展 2020-12-02 10:39

After I have started Mongo using mongod.exe on a Windows 7 machine, I tried to start the mongo shell that failed with the error:

Failed to connect to

14条回答
  •  情深已故
    2020-12-02 11:26

    What solved my issue was creating a file startmongo.conf that sets the bind_ip to 127.0.0.1 . After that, I just created a *.bat to start the mongo using something like:

    mongod --config c:\mongodb\bin\startmongo.conf

    More details could be seem at this post .

提交回复
热议问题