首次尝试连接到MongoDB时出错



我在第一次安装后尝试连接到mongodb时运行了此命令。并得到这个错误。有人可以帮助我吗?谢谢。

PS C:Usersn_ambatinode-course> /Users/n_ambati/mongodb/bin/mongod.exe --dbpath=/Users/n_ambati/mongodb-data                          2020-01-15T09:58:24.520-0500 I  CONTROL  [main] Automatically disabling 
TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2020-01-15T09:58:24.970-0500 I  CONTROL  [initandlisten] MongoDB starting : pid=17080 port=27017 dbpath=/Users/n_ambati/mongodb-data 64-bit host=DIXITAL103
2020-01-15T09:58:24.971-0500 I  CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2020-01-15T09:58:24.971-0500 I  CONTROL  [initandlisten] db version v4.2.2
2020-01-15T09:58:24.971-0500 I  CONTROL  [initandlisten] git version: a0bbbff6ada159e19298d37946ac8dc4b497eadf
2020-01-15T09:58:24.971-0500 I  CONTROL  [initandlisten] allocator: tcmalloc
2020-01-15T09:58:24.971-0500 I  CONTROL  [initandlisten] modules: none
2020-01-15T09:58:24.971-0500 I  CONTROL  [initandlisten] build environment:
2020-01-15T09:58:24.971-0500 I  CONTROL  [initandlisten]     distmod: 2012plus
2020-01-15T09:58:24.971-0500 I  CONTROL  [initandlisten]     distarch: x86_64
2020-01-15T09:58:24.971-0500 I  CONTROL  [initandlisten]     target_arch: x86_64
2020-01-15T09:58:24.971-0500 I  CONTROL  [initandlisten] options: { storage: { dbPath: "/Users/n_ambati/mongodb-data" } }
2020-01-15T09:58:24.974-0500 I  STORAGE  [initandlisten] exception in initAndListen: NonExistentPath: Data directory /Users/n_ambati/mongodb-data not found., terminating
2020-01-15T09:58:24.974-0500 I  NETWORK  [initandlisten] shutdown: going to close listening sockets...
2020-01-15T09:58:24.974-0500 I  -        [initandlisten] Stopping further Flow Control ticket acquisitions.
2020-01-15T09:58:24.974-0500 I  CONTROL  [initandlisten] now exiting
2020-01-15T09:58:24.975-0500 I  CONTROL  [initandlisten] shutting down with code:100
PS C:Usersn_ambatinode-course>

你的路径不存在:"/Users/n_ambati/mongodb-data"。 显然"C:\Users_ambatiode-course"确实存在,所以我认为你只需要在"n_ambati"文件夹中创建文件夹"mongodb-data",你就可以了。

相关内容

  • 没有找到相关文章

最新更新