0

当我尝试在 Windows 64 位上运行 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 没有关于谷歌的信息......有人可以解决这个问题吗?

4

2 回答 2

0

看起来像 Windows 套接字错误:

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

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

于 2012-08-14T22:56:28.560 回答
0

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

可能最好在管理员模式下使用 Windows 提示符...在 Start cmd 中搜索右键单击以管理员身份打开

不要忘记创建 C:\data\db 目录

全部

于 2012-09-05T05:40:08.673 回答