简体   繁体   English

MongoDB:Windows上不支持unix套接字

[英]MongoDB: No unix socket support on windows

I use Robo 3T as a UI tool for MongoDB on a Windows 8 machine. 我将Robo 3T用作Windows 8计算机上MongoDB的UI工具。 Now I've deployed the DB to production on a Ubuntu 14 server in Amazon EC2 cloud. 现在,我已将数据库部署到Amazon EC2云中的Ubuntu 14服务器上的生产环境中。 When I try to connect from the Windows machine to the Ubuntu one via Robo 3T, I receive the following error: 当我尝试通过Robo 3T从Windows机器连接到Ubuntu机器时,出现以下错误:

Cannot connect to the MongoDB at [ http://12.345.678.90]:27017 . 无法通过[ http://12.345.678.90]:27017连接到MongoDB。

Error: No unix socket support on windows 错误:Windows不支持Unix套接字

Is that a problem I need to fix on my computer by installing something? 我需要通过安装某些东西来解决此问题吗? or it's an issue of Mongo 3T? 还是Mongo 3T的问题?

If it's an issue on my Windows, what do I have to install in order to make it work? 如果Windows上有问题,我必须安装什么才能使其工作?

If it's a Mongo 3T issue, do you know another UI that does support connecting from Windows to Ubuntu? 如果是Mongo 3T的问题,您是否知道另一个支持从Windows连接到Ubuntu的UI?

Perhaps an EC2 solution? 也许是EC2解决方案?

Or maybe some settings I need to change in Robo 3T? 还是我需要在Robo 3T中更改某些设置?

I've tried changing "http" to "mongodb" to no avail. 我尝试将“ http”更改为“ mongodb”无济于事。 I've also tried removing the protocol prefix as suggested here but I ended up with the error: 我也尝试按照此处的建议删除协议前缀,但最终出现错误:

Cannot connect to the MongoDB at 12.345.678.90:27017. 无法通过12.345.678.90:27017连接到MongoDB。

Error: Network is unreachable. 错误:网络不可达。

Do you have a bindIP setting in your mongo configuration file? mongo配置文件中是否有bindIP设置? Probably that can cause the error. 可能会导致错误。 Either remove the bindIp configuration or allow your IP to access mongo server. 删除bindIp配置或允许您的IP访问mongo服务器。 (restart your service after changes the configuration). (更改配置后重新启动服务)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM