简体   繁体   English

无法使用 R 编程语言连接到 127.0.0.1:27017

[英]unable to connect to 127.0.0.1:27017 in R programming language

mangodb<-mongo.create()

This my r code.这是我的r代码。 When I'm creating a connection, it raises the following error:当我创建连接时,它会引发以下错误:

Unable to connect to 127.0.0.1:27017, error code = 2.

That means that mongodb isn't listening on its default port (27017).这意味着mongodb没有侦听其默认端口 (27017)。 Did you start mongodb ?你启动了mongodb吗? The R package provides an interface to connect to mongodb , but it's your (or the administrator) responsibility to start the mongodb daemon. R包提供了一个接口来连接到mongodb ,但是启动mongodb守护程序是您(或管理员)的责任。

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

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