简体   繁体   English

redis正在运行,但我得到“错误111连接到localhost:6379。 拒绝连接”

[英]redis is running but I'm getting “Error 111 connecting to localhost:6379. Connection refused”

I 'm using django + redis + celery. 我正在使用django + redis +芹菜。 It works: tasks are queued and executed. 它的工作原理是:任务排队并执行。 But every now and then I get a bunch of errors saying 但是我时不时会发现一堆错误

Cannot connect to redis://localhost:6379//: Error 111 connecting to localhost:6379. 无法连接到redis:// localhost:6379 //:错误111连接到localhost:6379。 Connection refused 拒绝连接

If I check the uptime of my redis-server process, I see it has been up from before the errors started, so it never crashed or anything. 如果我检查我的redis-server进程的正常运行时间,我发现它已经从错误开始之前就开始了,所以它从未崩溃或任何事情。

Any idea what's going on? 知道发生了什么事吗? what can I check to see what's happening? 我该怎么检查才能看到发生了什么?

Thanks! 谢谢!

安装redis服务器并重试:

sudo apt-get install redis-server

暂无
暂无

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

相关问题 无法连接到 redis://localhost:6379/0:连接到 localhost:6379 时出现错误 111。 拒绝连接 - Cannot connect to redis://localhost:6379/0: Error 111 connecting to localhost:6379. Connection refused Docker 上的 Redis:连接到 0.0.0.0:6379 时出现错误 111。 拒绝连接 - Redis on Docker: Error 111 connecting to 0.0.0.0:6379. Connection refused 连接到 localhost:6379 时出现错误 111。 连接被拒绝。 姜戈赫鲁库 - Error 111 connecting to localhost:6379. Connection refused. Django Heroku docker-compose + django + redis-错误111连接到127.0.0.1:6379。 拒绝连接 - docker-compose + django + redis - Error 111 connecting to 127.0.0.1:6379. Connection refused 引发 ConnectionError(self._error_message(e)) kombu.exceptions.OperationalError:连接到 localhost:6379 的错误 111。 拒绝连接 - raise ConnectionError(self._error_message(e)) kombu.exceptions.OperationalError: Error 111 connecting to localhost:6379. Connection refused OperationalError,连接到 127.0.0.1:6379 的错误 111。 拒绝连接。 在 heroku 中部署后 - OperationalError, Error 111 connecting to 127.0.0.1:6379. Connection refused. After deploying in heroku redis.exceptions.ConnectionError:连接到 localhost:6379 时出现错误 97。 协议不支持的地址族 - redis.exceptions.ConnectionError: Error 97 connecting to localhost:6379. Address family not supported by protocol Redis + Docker + Django - 错误111连接被拒绝 - Redis+Docker+Django - Error 111 Connection Refused NGINX 错误:连接到上游时连接()失败(111:连接被拒绝) - NGINX ERROR :connect() failed (111: Connection refused) while connecting to upstream 部署时出现此错误 [error] 9#9: *1 connect() failed (111: Connection refused) while connecting to upstream Nginx 502 Bad Gateway - When deployment I got this error [error] 9#9: *1 connect() failed (111: Connection refused) while connecting to upstream Nginx 502 Bad Gateway
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM