标签: ruby mongodb
我遇到了ruby mongodb适配器的问题。
当我这样做时
client = Mongo::MongoClient.new
我得到Failed to connect to a master node at localhost:27017 (Mongo::ConnectionFailure)
Failed to connect to a master node at localhost:27017 (Mongo::ConnectionFailure)
服务器似乎正在运行,因为我可以使用mongo shell命令,当我在浏览器中访问localhost:28017时,我看到了:
mongo
localhost:28017