简体   繁体   English

Django_beanstalkd中的连接被拒绝

[英]Connection refused in Django_beanstalkd

I'm very stuck with this. 我对此非常执着。 I have an app in Django that uses beanstalkd to establish a connection with vlcserver. 我在Django中有一个使用beanstalkd与vlcserver建立连接的应用程序。 Vlcserver captures video from an rtsp stream of an IP camera, and after that, that video is transcoded to a h264 format. Vlcserver从IP摄像机的rtsp流中捕获视频,然后,该视频被转码为h264格式。 The problem comes when I try to establish a connection with the beanstalkd server. 当我尝试与beantalkd服务器建立连接时,问题就来了。

beanstalkc.Connection('127.0.0.1', 11300)

When this instruction is executed, it appears an exception: [errno 111] Connection refused. 执行该指令时,将出现异常:[errno 111]连接被拒绝。 The port is open in the firewall. 该端口在防火墙中打开。 I don't know what I can do to fix this. 我不知道该如何解决。 Help please. 请帮助。

Thank you in advance. 先感谢您。

Most likely your beanstalkd instance is listening on a particular interface (-l command line parameter). 您的beantalkd实例很可能正在侦听特定的接口(-l命令行参数)。 If this is the case, then you need to either remove the parameter or set it to be -l 0.0.0.0 to listen on all interfaces. 如果是这种情况,那么您需要删除该参数或将其设置为-l 0.0.0.0以在所有接口上进行侦听。

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

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