MongoDB守护程序错误错误:10050无法运行mongod

时间:2012-08-14 22:28:21

标签: mongodb

当我尝试在Windows 64bit上运行MongoDB时,我收到此错误:

C:\>mongod
mongod --help for help and startup options
Tue Aug 14 19:26:12 [initandlisten] MongoDB starting : pid=2772 port=27017 dbpat
h=/data/db 64-bit host=wirelan-HM
Tue Aug 14 19:26:12 [initandlisten] db version v2.0.7, pdfile version 4.5
Tue Aug 14 19:26:12 [initandlisten] git version: 875033920e8869d284f32119413543f
a475227bf
Tue Aug 14 19:26:12 [initandlisten] build info: windows sys.getwindowsversion(ma
jor=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB
_VERSION=1_42
Tue Aug 14 19:26:12 [initandlisten] options: {}
Tue Aug 14 19:26:12 [initandlisten] journal dir=/data/db/journal
Tue Aug 14 19:26:12 [initandlisten] recover : no journal files present, no recov
ery needed
Tue Aug 14 19:26:13 [initandlisten] ERROR: listen(): bind() failed errno:10050 U
na operaci├│n socket encontr├│ una red inactiva. for socket: 0.0.0.0:27017
Tue Aug 14 19:26:13 [initandlisten] now exiting
Tue Aug 14 19:26:13 dbexit:
Tue Aug 14 19:26:13 [initandlisten] shutdown: going to close listening sockets..
.
Tue Aug 14 19:26:13 [initandlisten] shutdown: going to flush diaglog...
Tue Aug 14 19:26:13 [initandlisten] shutdown: going to close sockets...
Tue Aug 14 19:26:13 [initandlisten] shutdown: waiting for fs preallocator...
Tue Aug 14 19:26:13 [initandlisten] shutdown: lock for final commit...
Tue Aug 14 19:26:13 [initandlisten] shutdown: final commit...
Tue Aug 14 19:26:13 [initandlisten] shutdown: closing all files...
Tue Aug 14 19:26:13 [initandlisten] closeAllFiles() finished
Tue Aug 14 19:26:13 [initandlisten] journalCleanup...
Tue Aug 14 19:26:13 [initandlisten] removeJournalFiles
Tue Aug 14 19:26:13 [initandlisten] shutdown: removing fs lock...
Tue Aug 14 19:26:13 dbexit: really exiting now

第一个错误是文件夹/data/db。我解决了这个问题但是从errno:10050没有关于Google的信息......任何人都可以解决这个问题吗?

2 个答案:

答案 0 :(得分:0)

看起来像Windows套接字错误:

WSAENETDOWN 10050 - 网络已关闭。 套接字操作遇到死网络。这可能表示网络系统严重故障(即Windows套接字DLL运行的协议栈),网络接口或本地网络本身。

那么,检查防火墙和防病毒,然后连接互联网,然后尝试将mongo配置为仅使用127.0.0.1 相同的错误10050配置127.0.0.1?

答案 1 :(得分:0)

问题是mongod必须在Windows 7中以管理员权限打开...右键单击mongod.exe并以管理员身份打开

可能会更好地在管理模式下使用Windows提示...在“开始cmd”中右键单击“以管理员身份打开”

别忘了创建C:\ data \ db dir

全部