Meteor 是如何安装 MongoDb 的? [英] How is MongoDb installed by Meteor?
问题描述
我是 Meteor.js 和 MongoDB 和在 官方方式安装 Meteor 之后描述 我想知道如何连接到我的 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 安装,一切正常,但现在我想用另一个工具(如 RazorSQL) 以查看其中的内容.
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 月 - Meteor 0.7.1 - Meteor 端口已移至 3001 而不是 3002. 所以,而不是添加2 到流星运行的端口,你加 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 包中,在名为.meteor
的隐藏文件夹中包含您的文件.要从远程工具访问它,只需将 2
添加到您的 Web 服务器端口当meteor 正在运行.它将存储在meteor 数据库
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
例如http://localhost:3000
将使其 mongodb 服务器运行在 mongodb://localhost:3002/meteor
如果您运行它,则此实例上没有用户名/密码使用 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
这篇关于Meteor 是如何安装 MongoDb 的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!