gpt4 book ai didi

第一次安装后 MongoDB 没有启动

转载 作者:可可西里 更新时间:2023-11-01 10:42:54 27 4
gpt4 key购买 nike

我第一次尝试在我的 Windows 7 机器上安装 MongoDB。我正在将它安装到默认位置 (c:/)。

当我第一次执行 mongod.exe 时,我收到消息 'the waiting for connections message in the console'。 MongoDB 的文档要求在另一个cmd 提示符下连接并再次执行mongod.exe

当我这样做时,我收到以下消息:

C:\Program Files\MongoDB\Server\3.0\bin>mongod.exe
2015-09-04T11:31:23.880+0530 I CONTROL Hotfix KB2731284 or later update is not installed, will zero-out data files
2015-09-04T11:31:23.905+0530 W - [initandlisten] Detected unclean shutdown - C:\data\db\mongod.lock is not empty.

2015-09-04T11:31:23.907+0530 I STORAGE [initandlisten] exception in initAndListen: 98 Unable to create/open lock file:
C:\data\db\mongod.lock errno:32 The process cannot access the file because it is being used by another process.. Is a mo
ngod instance already running?, terminating
2015-09-04T11:31:23.907+0530 I CONTROL [initandlisten] dbexit: rc: 100

C:\Program Files\MongoDB\Server\3.0\bin>mongod.exe
2015-09-04T11:33:52.437+0530 I CONTROL Hotfix KB2731284 or later update is not installed, will zero-out data files
2015-09-04T11:33:52.442+0530 W - [initandlisten] Detected unclean shutdown - C:\data\db\mongod.lock is not empty.

2015-09-04T11:33:52.445+0530 I STORAGE [initandlisten] exception in initAndListen: 98 Unable to create/open lock file:
C:\data\db\mongod.lock errno:32 The process cannot access the file because it is being used by another process.. Is a mo
ngod instance already running?, terminating
2015-09-04T11:33:52.445+0530 I CONTROL [initandlisten] dbexit: rc: 100

P.S.: 我在 C:/ 中创建了 /data/db

最佳答案

嗯,我刚遇到同样的问题。我安装了修复程序,但只看到同样的错误。这就是我克服它的方法:只需在您的 C 目录中创建一个文件夹结构,如下所示:C:\data\db。所以它对我很有效。我使用 Windows 7 x64。

关于第一次安装后 MongoDB 没有启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32391340/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com