在Azure VM上访问MongoDB服务器 [英] Acceesing MongoDB server on Azure VM

查看:90
本文介绍了在Azure VM上访问MongoDB服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都有机会在ubuntu Server 14上安装MongoDB的好文章. 我正在使用在Azure的VM Ubuntu 14上安装的MongoDb服务器,并且使用此教程 ,带有最新版本.我也添加了mongo 27017的端口.我直接连接到它,并添加了一些集合的数据库. 我可以通过Putty登录mongo,并访问它的文件,即使设置正确也是如此. 但是我无法通过RoboMongo进行访问,甚至在浏览器中也无法显示以下消息:您似乎正在尝试通过本机驱动程序端口上的HTTP访问MongoDB.

did anyone have by a chance a good article for installing MongoDB on ubuntu Server 14. I am using MongoDb server installed on VM Ubuntu 14 on Azure, and I use this tutroial, with last version. I add the port of mongo 27017 too. And I connect to it directly and add Database with some collections. I can log into mongo by Putty, and access it files, even the setting is right. But I can't access by RoboMongo or even in the browser can give me message like : It looks like you are trying to access MongoDB over HTTP on the native driver port.

![输入图像描述 此处] 2

![enter image description here]

我不知道问题出在哪里

更新: 如您所见,我可以通过SSH进行访问,但不能直接访问

Update: I can access by SSH but not directly, as you see

推荐答案

看看您的mongod.conf,其中bindIp127.0.0.1(本地主机).这将阻止您从其他任何地方访问mongodb.尝试将bindIp更改为0.0.0.0,然后重新启动mongod进程.

Take a look at your mongod.conf, where your bindIp is 127.0.0.1 (localhost). This is going to prevent you from reaching mongodb from anywhere else. Try changing that bindIp to 0.0.0.0 and restart the mongod process.

这篇关于在Azure VM上访问MongoDB服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆