Mongodb: Failed to connect to 127.0.0.1:27017, reason: errno:10061

后端 未结 17 2211
醉话见心
醉话见心 2020-11-29 19:12

Here is my mongod.cfg file:

bind_ip = 127.0.0.1
dbpath = C:\\mongodb\\data\\db
logpath = C:\\mongodb\\log\\mongo-server.log
verbose=v

17条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 19:49

    Here are the steps to solve this issue:

    1. Just go to your MongoDB bin folder and run the mongod.exe file.
    2. Navigate to your mongodb bin folder via Command prompt and start mongo by typing "mongo"

提交回复
热议问题