即使重新安装后,Mongo仍在27017上等待 [英] Mongo waiting on 27017 even after reinstall

查看:71
本文介绍了即使重新安装后,Mongo仍在27017上等待的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经卸载并重新安装了mongo(3.0.1),请确保我接受Windows 8上的网络访问,但是仍然遇到等待27017"的问题.

I have uninstalled and reinstalled mongo (3.0.1), being sure i accepted the network access on windows 8, and yet i still have the same issue of "waiting on 27017".

我发送的命令如下:

PS C:\Program Files\MongoDB\Server\3.0\bin> .\mongod.exe --dbpath  C:\mongodb\data
2015-04-01T21:33:46.787-0400 I JOURNAL  [initandlisten] journal dir=C:\mongodb\data\journal
2015-04-01T21:33:46.790-0400 I JOURNAL  [initandlisten] recover : no journal files present, no recovery needed
2015-04-01T21:33:46.972-0400 I JOURNAL  [durability] Durability thread started
2015-04-01T21:33:46.973-0400 I JOURNAL  [journal writer] Journal writer thread started
2015-04-01T21:33:47.134-0400 I CONTROL  [initandlisten] MongoDB starting : pid=7436 port=27017 dbpath=C:\mongodb\data 64
-bit host=CookieMunster
2015-04-01T21:33:47.135-0400 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2015-04-01T21:33:47.135-0400 I CONTROL  [initandlisten] db version v3.0.1
2015-04-01T21:33:47.136-0400 I CONTROL  [initandlisten] git version: 534b5a3f9d10f00cd27737fbcd951032248b5952
2015-04-01T21:33:47.137-0400 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1j-fips 15 Oct 2014
2015-04-01T21:33:47.137-0400 I CONTROL  [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, buil
d=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_49
2015-04-01T21:33:47.139-0400 I CONTROL  [initandlisten] allocator: system
2015-04-01T21:33:47.141-0400 I CONTROL  [initandlisten] options: { storage: { dbPath: "C:\mongodb\data" } }
2015-04-01T21:33:47.148-0400 I INDEX    [initandlisten] allocating new ns file C:\mongodb\data\local.ns, filling with ze
roes...
2015-04-01T21:33:47.587-0400 I STORAGE  [FileAllocator] allocating new datafile C:\mongodb\data\local.0, filling with ze
roes...
2015-04-01T21:33:47.589-0400 I STORAGE  [FileAllocator] creating directory C:\mongodb\data\_tmp
2015-04-01T21:33:47.721-0400 I STORAGE  [FileAllocator] done allocating datafile C:\mongodb\data\local.0, size: 64MB,  t
ook 0.007 secs
2015-04-01T21:33:47.747-0400 I NETWORK  [initandlisten] waiting for connections on port 27017

这是未决的,并将继续不断地出现.

This is pending and will continue to do see endlessly.

把我的头靠在墙上,任何帮助都是很棒的.

Hitting my head against a wall and any help is wonderful.

谢谢

推荐答案

控制台输出中的等待连接消息表明mongod.exe进程正在成功运行.

The waiting for connections message in the console output indicates that the mongod.exe process is running successfully.

http://docs.mongodb.org/manual/教程/install-mongodb-on-windows/?_ga=1.82566930.525730850.1428016333

接下来,您需要使用另一个命令promt通过mongo.exe Shell连接到MongoDB.

Next you need to connect to MongoDB through mongo.exe shell using another command promt.

完成此操作后,第一个控制台中的等待消息将变为已接受连接.

As soon as you are done with that, the waiting message in first console would change to connection accepted.

希望有帮助:)

这篇关于即使重新安装后,Mongo仍在27017上等待的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆