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

后端 未结 17 2221
醉话见心
醉话见心 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:37

    I started mongod in cmd,It threw error like C:\data\db\ not found. Created folder then typed mongod opened another cmd typed mongo it worked.

提交回复
热议问题