gpt4 book ai didi

mongodb - 为远程 MongoVUE GUI 访问设置 CentOS 防火墙

转载 作者:可可西里 更新时间:2023-11-01 09:25:08 27 4
gpt4 key购买 nike

我正在尝试设置 MongoVUE 以连接到运行 MongoDB 的网络服务器。我可以通过 Putty 中的 SSHing 或在 Windows 命令行中使用 mongo ip:port 轻松连接到它。

但是,当通过 MongoVUE 的 SSH 隧道建立连接时,出现错误:

Unable to connect to server 127.0.0.1:5252: No connection could be made because the target machine actively refused it 127.0.0.1:5252.

所以我假设防火墙配置有问题。

但是,我的/etc/sysconfig/iptables 包含以下行:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 27017 -j ACCEPT

还应该有什么地方让这个连接?

这是 MongoVue SSH 配置:

enter image description here

最佳答案

我在使用 MongoVUE 的内置 SSH 功能时遇到了同样的错误。

我怀疑这是 MongoVUE 中的错误。按照 http://www.mongovue.com/2011/08/04/mongovue-connection-to-remote-server-over-ssh/ 中的说明,我能够使用 Putty 使 SSH 工作。 .

enter image description here

enter image description here

下面是 Putty 隧道配置:Putty 配置为监听 5151,然后连接到远程系统 (MongoD) 上的 27017。

enter image description here

关于mongodb - 为远程 MongoVUE GUI 访问设置 CentOS 防火墙,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12695471/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com