本文介绍了从GUI连接到Meteor Mongo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从GUI连接到Meteor Mongo实例,例如MongoChef(我在运行带有Meteor应用程序的Ubuntu虚拟机的Windows上)?

How do I connect to my Meteor Mongo instance from a GUI, e.g. MongoChef (I am on Windows running an Ubuntu Virtual Machine which has the Meteor application on it)?

我尝试使用正在运行的Virtual Box的IP地址进行连接,但端口3001和27017都无法正常运行-我应该设置一些端口转发或其他功能吗?

I have tried connecting using the IP address of my running Virtual Box, with both port 3001 and 27017 with no joy - should I be setting up some port forwarding or something?

推荐答案

这适用于在安装Meteor时即用的Mongo安装:

This applies to an out-of-the-box install of Mongo when Meteor is installed:

mongo守护程序mongod绑定到127.0.0.1,因此如果客户端支持,则需要通过SSH隧道连接到它. MongoVUE和Mongo Chef都允许这种类型的连接. SSH进入虚拟机后,您可以毫无问题地连接到127.0.0.1:3001.它不需要密码或用户名,只需将数据库设置为meteor.

The mongo daemon mongod binds to 127.0.0.1 so you need to connect to it via a SSH tunnel if your client supports it. MongoVUE and Mongo Chef both allow this type of connection. Once you SSH into the VM, you can connect to 127.0.0.1:3001 without any trouble. It does not require a password or username, just the database to be set as meteor.

这篇关于从GUI连接到Meteor Mongo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 18:42