Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MongoDB在第一次安装后不会启动_Mongodb - Fatal编程技术网

MongoDB在第一次安装后不会启动

MongoDB在第一次安装后不会启动,mongodb,Mongodb,我第一次尝试在我的Windows7机器上安装MongoDB。我正在将其安装到默认位置(c:/) 当我第一次执行mongod.exe时,我得到消息“控制台中等待连接消息”。MongoDB的文档要求连接到另一个cmd提示符并再次执行mongod.exe 当我这样做时,我得到以下信息: C:\Program Files\MongoDB\Server\3.0\bin>mongod.exe 2015-09-04T11:31:23.880+0530 I CONTROL Hotfix KB273128

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

当我第一次执行
mongod.exe
时,我得到消息
“控制台中等待连接消息”
。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

附言:我在
C://

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

它不是
MangoDB
,而是MongoDBre安装。按照说明操作,我使用的是您提到的同一个文档,我卡在第3点连接到MongoDB。C:\data\db已经存在。在cmd上,我可以看到“C:\data\db\mongod.lock不是空的”