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

前端 未结 14 1703
渐次进展
渐次进展 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:16

    I am not sure if there is a better way to run it. For me, I use these settings to create a directory and to a determinate new path for the MongoDB. The important thing for me is that I miss to run it as a server (mongod) and after that into another terminal I type mongo which provide me an option to use the database. I hope this could help someone.

提交回复
热议问题