首页 > 解决方案 > 从远程机器访问芹菜花

问题描述

我在远程机器上使用 Celery 和 Flower,并通过 SSH 隧道(在 Mac OS 上,Core Tunnel)连接到本地。我的 Flower 应用程序已启动,我可以从远程机器上 CURL:

卷曲 http://localhost:5555。

隧道如下:

ssh -L 127.0.0.1:10002:flower_server:5555 -o ExitOnForwardFailure=yes -o ServerAliveInterval=15 -o ServerAliveCountMax=3 login@tunnel_server

因此,我希望如果我执行 http://localhost:10002,来自远程机器的 Flower 实例将显示在我的本地浏览器中。但相反,我返回 ERR_CONNECTION_RESET 异常。当我尝试从本地机器执行 CURL http://localhost:10002 时,它返回

接收失败:对等方重置连接

我不知道出了什么问题。也许有人有相同/相似的问题?

标签: sshcelerytunnelflower

解决方案


推荐阅读