win10 无法启动 mongod

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了win10 无法启动 mongod相关的知识,希望对你有一定的参考价值。

2018-10-07T18:57:58.237-0700 I CONTROL [initandlisten] MongoDB starting : pid=5924 port=27017 dbpath=C:\data\db\ 64-bit host=DESKTOP-0H8NUDG
2018-10-07T18:57:58.237-0700 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2018-10-07T18:57:58.237-0700 I CONTROL [initandlisten] db version v3.6.5
2018-10-07T18:57:58.237-0700 I CONTROL [initandlisten] git version: a20ecd3e3a174162052ff99913bc2ca9a839d618
2018-10-07T18:57:58.237-0700 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2o-fips 27 Mar 2018
2018-10-07T18:57:58.237-0700 I CONTROL [initandlisten] allocator: tcmalloc
2018-10-07T18:57:58.237-0700 I CONTROL [initandlisten] modules: none
2018-10-07T18:57:58.237-0700 I CONTROL [initandlisten] build environment:
2018-10-07T18:57:58.237-0700 I CONTROL [initandlisten] distmod: 2008plus-ssl
2018-10-07T18:57:58.238-0700 I CONTROL [initandlisten] distarch: x86_64
2018-10-07T18:57:58.238-0700 I CONTROL [initandlisten] target_arch: x86_64
2018-10-07T18:57:58.238-0700 I CONTROL [initandlisten] options:
2018-10-07T18:57:58.239-0700 I STORAGE [initandlisten] exception in initAndListen: NonExistentPath: Data directory C:\data\db\ not found., terminating
2018-10-07T18:57:58.239-0700 I CONTROL [initandlisten] now exiting
2018-10-07T18:57:58.239-0700 I CONTROL [initandlisten] shutting down with code:100

参考技术A exception in initAndListen: NonExistentPath: Data directory C:\data\db\ not found., terminating 他在默认路径没找到,你启动的时候要指定路径,或者修改配置文件
mongod --dbpath D:\mongodb\data\db

以上是关于win10 无法启动 mongod的主要内容,如果未能解决你的问题,请参考以下文章

Mongodb 4.0服务启动不了

win7安装mongodb错误

mongodb 不会启动 mongod -> 错误 dbpath 不存在,但路径确实退出

Ubuntu下,解决mongod服务无法启动的问题

win10无法启动服务原因可能是已被禁用或与其相关联的设备没有启动

MongoDB服务无法启动,发生服务特定错误:100