search

Home  >  Q&A  >  body text

node.js - mongodb找不到文件

我把mongodb安装到d盘下,项目也是放在d
但是设置的时候报找不到文件,这是怎么回事??我的是window10系统

D:\应用安装目录\bin>mongod --dbpath=D:\项目文件\nodejs\db --port=27018
2016-10-07T08:36:40.659+0800 I CONTROL  [initandlisten] MongoDB starting : pid=240 port=27018 dbpath=D:\项目文件\nodejs\db 64-bit host=DESKTOP-FDQ6J87
2016-10-07T08:36:40.659+0800 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
dlisten] exception in initAndListen: 29 Data directory D:\项目文件\nodejs\db not found., terminating
2016-10-07T08:36:40.663+0800 I CONTROL  [initandlisten] dbexit:  rc: 100
怪我咯怪我咯2779 days ago556

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 15:00:47

    Does the db directory exist?

    reply
    0
  • Cancelreply