我像这样(在 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/