C#的MongoDB错误 [英] MongoDB Error with C#

查看:113
本文介绍了C#的MongoDB错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了Quickstart Windows,并下载了 mongodb-win32-i386-2.0.4.zip ,当我运行mongo.exe时出现此错误:

I have seen the Quickstart Windows and downloaded mongodb-win32-i386-2.0.4.zip and this error appears when I run mongo.exe:

Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84   
exception: connect failed  

我该怎么办?我需要下载其他内容吗?

What should I do? Do I need to download something else?

推荐答案

mongo.exe Mongo Shell ,它将尝试连接到localhost:27017处的服务器,除非您明确指定其他服务器和端口.

mongo.exe is the Mongo Shell, which will attempt to connect to the server at localhost:27017 unless you explicitly specify another server and port.

您要使用的是mongod.exe(注意'd'吗?),它是 MongoDB Server .

The one you're after is mongod.exe (notice the 'd'?), which is the MongoDB Server.

这篇关于C#的MongoDB错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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