mongodb - 蒙戈 : Meteor isn't running a local MongoDB server

标签 mongodb meteor

我像这样(在 Debian 7.7 上)新创建了一个新的 meteor (1.2.1) 项目,但我无法进入 mongo 终端:

$ meteor create test
$ cd test
$ meteor run
[[[[[ ~/test ]]]]]                           

=> Started proxy.                             
=> Started MongoDB.                           
=> Started your app.                          

=> App running at: http://localhost:3000/

在一个新终端中:

$ meteor mongo
mongo: Meteor isn't running a local MongoDB server.

This command only works while Meteor is running your application locally.         
Start your application first with 'meteor' and then run this
command in a new terminal. This error will also occur if you asked Meteor to
use a different MongoDB server with $MONGO_URL when you ran your
application.

If you're trying to connect to the database of an app you deployed with 
'meteor deploy', specify your site's name as an argument to this
command.

是的,它正在运行本地 MongoDB 服务器!! 这里有什么问题,我该怎么办? $MONGO_URL 顺便说一句,它是空的。 mongodb 已安装,但未使用(只需要 mongodump 和 mongorestore 连接到 meteor 的 mongo)。

谢谢

最佳答案

运行 Windows 10 时出现此错误。 有趣的是,meteor mongo 之前可以正常工作,但突然之间就不能正常工作了。我不太记得我做了什么,但它可能是用窗口关闭图标而不是 ctrl+c 关闭终端。

无论如何我所做的是运行:

>meteor mongo localhost:3001

此输出以下错误

Sorry, Meteor does not yet support specific path URLs, such as http://www.example.com/blog . Please specify the root of a domain

然后我再次运行 >meteor mongo 命令,砰!!它再次起作用。

关于mongodb - 蒙戈 : Meteor isn't running a local MongoDB server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33638548/

相关文章:

java - 如何使用 Jongo 将项目添加到 Mongo 数组?

javascript - Meteor 应用程序 - 如何为多实例部署实现编排/配置?

Meteor Up Docker 和 Graphicsmagick

javascript - MeteorJS 中的 Promise

mongodb - 用于更新 mongodb 数据的 '$' 索引有问题

Mongodb 在 LineString $near [lng, lat] 上获取点

Meteor:使用 Sessions 和 ReactiveVar

mongodb - 如何在 $nearSphere 查询中使用 $maxDistance 的文档属性?

mongodb - 将 mgo 用于嵌套文档字段

MongoDB对索引字段的查询非常慢