MongoDB 关于mongo.exe黑色框程序闪退

如果又跟我一样的,网上的教程几乎都试了个遍还没有用的。安装低一版本的MongoDB试一下,之前我是在官网下载4.2版本的,怎么样都没有。后来我下了4.0.12版本的(要安装在系统默认路径呦)就好了。太难了 试了好久

我先是在MongoDB bin目录下双击mongo.exe文件结果出现黑框闪退
接着我又使用cmd来运行mongo

C:\Program Files\MongoDB\bin>mongo

结果出现了一下结果
2019-09-14T18:56:54.663+0800 F CONTROL [main] *** unhandled exception 0xE06D7363 at 0x00007FFFF0CAA839, terminating

connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("43123533-717d-4ec1-9e4f-fb95154c2ceb") }
MongoDB server version: 4.2.0
Server has startup warnings:
2019-09-14T16:46:16.226+0800 I  CONTROL  [initandlisten]
2019-09-14T16:46:16.226+0800 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2019-09-14T16:46:16.226+0800 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2019-09-14T16:46:16.226+0800 I  CONTROL  [initandlisten]
---
Enable MongoDB's free cloud-based monitoring service, which will then receive and display
metrics about your deployment (disk utilization, CPU, operation statistics, etc).

The monitoring data will be available on a MongoDB website with a unique URL accessible to you
and anyone you share the URL with. MongoDB may use this information to make product
improvements and to suggest MongoDB products and deployment options to you.

To enable free monitoring, run the following command: db.enableFreeMonitoring()
To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
---

2019-09-14T18:56:54.663+0800 F  CONTROL  [main] *** unhandled exception 0xE06D7363 at 0x00007FFFF0CAA839, terminating
2019-09-14T18:56:54.665+0800 F  CONTROL  [main] *** stack trace for unhandled exception:
2019-09-14T18:56:54.667+0800 I  -        [main] KERNELBASE.dll      RaiseException+0x69
VCRUNTIME140.dll    CxxThrowException+0xad
mongo.exe           MallocExtension::GetEstimatedAllocatedSize+0x175210
mongo.exe           MallocExtension::GetEstimatedAllocatedSize+0x174fef
mongo.exe           tc_mallopt+0xa52c
mongo.exe           mozilla::detail::MutexImpl::~MutexImpl+0x866f
mongo.exe           mozilla::detail::MutexImpl::~MutexImpl+0x2317
mongo.exe           mozilla::detail::MutexImpl::~MutexImpl+0x8de5
mongo.exe           tcmalloc::Log+0xaaf04
KERNEL32.DLL        BaseThreadInitThunk+0x14
2019-09-14T18:56:54.668+0800 I  CONTROL  [main] writing minidump diagnostic file C:\Program Files\MongoDB\bin\mongo.2019-09-14T10-56-54.mdmp
2019-09-14T18:56:54.851+0800 F  CONTROL  [main] *** immediate exit due to unhandled exception

C:\Program Files\MongoDB\bin>

图片说明

https://blog.csdn.net/qq_41619567/article/details/84317404