mongo - couldn't connect to server 127.0.0.1:27017

后端 未结 30 2416
故里飘歌
故里飘歌 2020-11-27 09:43

I am coming from riak and redis where I never had an issue with this services starting, or to interact.

This is a pervasive problem with mongo and am rather clueless

30条回答
  •  伪装坚强ぢ
    2020-11-27 10:37

    A little to late with the answer but I've encountered the same issue

    Following are the steps which helped me.

    1. Go to C:\
    2. Create "data" folder
    3. In "data" create "db" folder
    4. open terminal (CMD) -> go to EX:"c:\MongoDB\Server\3.4\bin"
    5. type in mongod => this will start mongo server (leave it opened)

    Run using a GUI, EX "robomongo"

    Or

    open new terminal (CMD) -> go to EX:"c:\MongoDB\Server\3.4\bin" type in "mongo" command

提交回复
热议问题