mongo:Meteor没有运行本地MongoDB服务器 [英] mongo: Meteor isn't running a local MongoDB server

查看:89
本文介绍了mongo:Meteor没有运行本地MongoDB服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚在Debian 7.7上创建了一个新的流星(1.2.1)项目,但是我无法进入mongo终端:

I freshly created a new meteor (1.2.1) project like this (on a Debian 7.7) but I'm not able to enter the mongo terminal:

$ 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才能连接到流星的mongo).

Yes it is running a local MongoDB server!! What's wrong here, what shall I do? $MONGO_URL is empty btw. mongodb is installed, though, but not used (only need mongodump and mongorestore to connect to meteor's mongo).

谢谢

推荐答案

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

Got this error running windows 10. Funny thing is, meteor mongo was working before then all of a sudden it didn't work. I don't quite remember what i did but it could have been closing the terminal with the window close icon instead of ctrl+c.

无论如何我都在运行:

>meteor mongo localhost:3001

这将输出以下错误

对不起,Meteor还不支持特定的路径URL,例如 http://www.example.com/blog .请指定域的根

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命令并繁荣!它再次起作用.

And then I run the >meteor mongo command again and boom!! it works again.

这篇关于mongo:Meteor没有运行本地MongoDB服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆