Connect to Meteor using Robomongo

社会主义新天地 提交于 2020-01-02 07:05:42

问题


I have Meteor running on a local virtual machine on Windows which is accessible using the IP address of 192.168.56.111

When I use Robomongo, I use this IP address and point it to port 3001 and I an unable to connect.

Should I expect it to connect? If not, is there anything I need to do to get it to connect?


回答1:


Setup SSH server on Windows and then simply create SSH tunnel:

ssh -L27018:192.168.56.111:3001 user@host

After that open Robomongo and connect to localhost:27018. That's it!

This technique I'm using successfully to connect to production database.




回答2:


With meteor the database that runs is bound to 127.0.0.1, so it will not be accessible on other IPs. I think this was done for a security reason, though not sure.

You should use the local IP/127.0.0.1 instead of 192.168.56.11.



来源:https://stackoverflow.com/questions/25475975/connect-to-meteor-using-robomongo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!