流星蒙古错误

时间:2015-02-12 19:27:36

标签: mongodb

我刚刚设置了一个meteor localhost应用程序,当试图在linux终端上执行“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. (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 with this command.
What sould I do??

1 个答案:

答案 0 :(得分:1)

你需要让mongo服务器运行才能运行meteor mongo并访问它。 首先打开一个终端窗口并运行你的流星应用程序

meteor run

然后打开另一个窗口并访问你的mongo db

meteor mongo