简体   繁体   English

无法访问远程服务器上的MongoDB

[英]cannot access MongoDB on remote server

I installed MongoDB on WIndows server as a service. 我将MongoDB作为服务安装在Windows服务器上。 I am trying to access DB from my personal computer using IP of remote server and port 27017. I followed multiple tutorials but everything is failing. 我试图使用远程服务器的IP和端口27017从我的个人计算机访问DB。我遵循了多个教程,但是一切都失败了。 Below is the config file. 下面是配置文件。

dbpath = C:\DB\data
logpath = C:\DB\log\mongod.log
logappend=true
port = 27017
bind_ip = 0.0.0.0
auth = true

I have allowed port 27017 in firewall. 我已在防火墙中允许端口27017。

在此处输入图片说明

I have figured out the issue. 我已经解决了这个问题。 Everything was setup correctly. 一切都正确设置。 I just needed to allow port 27017 on amazon instance too. 我只需要在亚马逊实例上也允许端口27017。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM