首页 \ 问答 \ 为什么Mongodb不能连接?(Why cannot Mongodb connect?)

为什么Mongodb不能连接?(Why cannot Mongodb connect?)

我正在尝试在Mac OSx上连接MongoDB,并使用自制软件安装。 在一个终端窗口中,我使用mongod命令设置数据库,并在回复结束时按预期显示

waiting for connections on port 27017

然后,我打开另一个终端窗口,输入mongo进入mongo shell。

但是,第一个终端窗口似乎不承认我的连接。 我怀疑这可能是因为关机不好。 这个答案有一些信息:
为什么我的mongodb不能连接到端口28017? 但它并没有帮助我改变端口号。

首先,我该如何进行干净关机? 文档中的教程说使用Control+C ,这是我以前关闭的。 其次,如何更改mongo连接到mongodb服务器的端口号?

谢谢。


I'm trying to connect MongoDB on my Mac OSx, and I installed using homebrew. In one terminal window, I set up the database with mongod command, and at the end of the reply, it says, as expect

waiting for connections on port 27017

Then, I open up another terminal window, and type mongo to get to the mongo shell.

However, the first terminal window does NOT acknowledge my connection it seems like. I suspect it could be from a bad shutdown. This answer has some info:
Why won't my mongodb connect to port 28017? But it doesn't help me to change the port number.

Firstly, how do I do a clean shutdown? The tutorial here from the documentation says to use Control+C, which is what I used to shutdown. Secondly, how do I change the port number that mongo connects to mongodb server?

Thanks.


原文:https://stackoverflow.com/questions/31150892
更新时间:2023-04-17 12:04

最满意答案

我能够解决问题。 该解决方案可能适用于英特尔G41高速芯片组。 与ig4icd32.dll相关的任何问题都与图形驱动程序有关。 对于大多数情况,解决方案是升级显卡驱动程序。

但我使用的是最新的图形驱动程序,版本为8.15.10.2702 。 我没有选择权。 所以,为了检查,我降级到版本8.15.10.1883 ,这是英特尔网站提供的版本。 它解决了错误。 我可以再次使用模拟器。


I was able to solve the problem. This solution will probably work for Intel G41 express chipset. Any problem related to ig4icd32.dll is related to graphics drivers. For most of the case, the solution is to upgrade graphics driver.

But I was using the latest graphics driver which is version 8.15.10.2702. I was out of option. So just to check, I downgraded to version 8.15.10.1883 which is the version provided in Intel website. It solved the error. I can use the emulator again.

相关问答

更多
  • 根据MSDN测试,应直接在设备上测试: 问:测试只能在模拟器上执行,还是我也可以使用物理设备? 答:支持任一选项。 通过更改模拟器类型或在设备工具栏中选择设备来选择测试执行的目标。 如果选择了Device,则需要将Phone Blue设备连接到本机的其中一个USB端口。 但是,无法在没有模拟器的情况下创建测试: 问:我是否必须在模拟器中部署Windows Phone应用程序才能映射UI控件? 答:是的,编码的UI测试构建器要求运行模拟器并将应用程序部署到它。 否则,它将抛出一条错误消息,指出没有找到正在运行 ...
  • 事实证明,这是可用虚拟内存的Windows 8问题。 看起来像一些新进程(如Superfetch)会消耗大量的处理能力来不断扫描驱动器以进行更改,因此搜索速度更快。 解决方案是更改最小和最大虚拟内存值。 以下是如何做到这一点: http://windows.microsoft.com/en-us/windows/change-virtual-memory-size#1TC=windows-7 我有7GB的内存,所以我将分钟设置为2000MB,最大为5000MB。 整天没有崩溃! It turns out i ...
  • 当然,但您应该使用开发人员解锁设备来部署您的应用程序。 要解锁设备,您可以使用SDK附带的Windows Phone开发人员注册工具。 Sure, but you should have developer unlocked device to deploy your application. To unlock your device, you can use Windows Phone Developer Registration tool coming with SDK.
  • 我能够解决问题。 该解决方案可能适用于英特尔G41高速芯片组。 与ig4icd32.dll相关的任何问题都与图形驱动程序有关。 对于大多数情况,解决方案是升级显卡驱动程序。 但我使用的是最新的图形驱动程序,版本为8.15.10.2702 。 我没有选择权。 所以,为了检查,我降级到版本8.15.10.1883 ,这是英特尔网站提供的版本。 它解决了错误。 我可以再次使用模拟器。 I was able to solve the problem. This solution will probably work ...
  • Windows Phone 8.0 SDK包括为7.1和8.0创建应用程序的功能,因此不需要安装7.1 SDK。 然而 Visual Studio 2013不支持为7.x开发应用程序。如果必须以7.x设备为目标,则需要使用VS2010或VS2012。 如果您想要为Windows Phone 7.x构建,则应使用Visual Studio 2012.您可以在同一台计算机上安装此AND Visual Studio 2013。 您可能无法做到的唯一事情就是拥有一个可以在两个版本的VS中使用的所有项目的单一解决方案 ...
  • 请检查以下2项: 确保使用x86映像创建AVD。 如果您未在SDK管理器中下载特定的API级别x86映像,AVD管理器将不会显示x86选项 启动模拟器后,转到Windows任务管理器,然后查找进程名称emulator-x86.exe ; 如果你没找到它,而是找到了emulator-arm.exe ; 检查您的avd配置,如上所述。 如果上面看起来没问题,这里有关于Windows 8.1上HAXM安装的一些注意事项: 我正在使用win 8.1和haxm v1.1.0,有时我没有确认消息,如果我配置了网络摄像头 ...
  • 复制并删除文档中的.android文件夹。 然后重新开始。 Make a copy and delete .android folder in your documents. Then start again.
  • 请尝试这个过程。 关闭Eclipse IDE 重新启动IDE并删除创建的AVD。 创建AVD,然后重新启动应用程序。 如果这个过程对您有帮助,请告诉我。 类似的问题: 新安装的Eclipse和Android SDK。 无法让模拟器工作。 挂在时钟屏幕上 Please try this process. Close your Eclipse IDE Restart the IDE and delete the AVD created. Create the AVD and then relaunch the ...
  • 直接使用DirectX时,似乎Windows Phone不会更改帧缓冲的寻址方式。 在横向模式下,您必须自己手动旋转图形。 参见这篇文章: http : //www.catalinzima.com/2012/12/handling-orientation-in-a-windows-phone-8-game/ When using DirectX directly, it would appear that Windows Phone does not change how the framebuffer i ...
  • Windows Phone 8仿真程序的系统要求文档指出您需要64位版本的Windows 8 Pro或更高版本。 我怀疑你没有专业版。 您仍然可以在非Pro版本上为Windows Phone 8开发应用程序,但不能使用模拟器 - 您必须在已注册的Windows Phone 8手机上进行调试。 The system requirements documentation for the windows Phone 8 emulator states that you need a 64-bit version ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。