流星如何安装MongoDb? [英] How is MongoDb installed by Meteor?
问题描述
Meteor.js 和官方方式安装流星后描述,我想知道如何连接到我的MongoDB.
I'm new to both Meteor.js and MongoDB and after installing Meteor in the official way described I wonder how to connect to my MongoDB.
MongoDB是由Meteor在安装过程中安装的,一切正常,但是现在我想用另一个工具(例如
MongoDB was installed by Meteor during the installation and everything works fine but now I would like to have a look into it with another tool (like RazorSQL) to see what's in there.
但是标准连接参数(localhost:27017)不起作用,我该怎么办?登录?密码?
But the standard connection parameters (localhost:27017) doesn't work, what can I do? Login? Password?
推荐答案
更新:2014年2月-流星0.7.1-流星端口已从3002移至3001.因此,与其添加在端口流星上运行两个,则改为添加1.
Update: February 2014 - Meteor 0.7.1 - The meteor port has been shifted to 3001 instead of 3002. So instead of adding two to the port meteor runs on, you add 1 instead.
MongoDB的数据库安装在流星软件包中,该文件在一个名为.meteor
的隐藏文件夹中包含您的文件.要从远程工具访问它,只需在流星运行时将2
添加到您的Web服务器端口为的任何地方即可..它将存储在流星数据库
MongoDB's database is installed in the meteor package containing your files in a hidden folder called .meteor
. To access it from a remote tool simply add 2
to whatever your web server port is while meteor is running. It will be stored in the meteor database
例如
如果使用meteor
或meteor run
e.g
http://localhost:3000
would have its mongodb server running at mongodb://localhost:3002/meteor
there is no username/password on this instance if you ran it with meteor
or meteor run
这篇关于流星如何安装MongoDb?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!