redis.exceptions.ConnectionError: Error 111 connecting to 172.16.8.128:6379. Connection refused.

不用看,redis 绑定了127.0.0.1,拒绝远程访问
修改 /etc/redis.conf 文件下的 bind 配置,改成 0.0.0.0,允许所有
redis.exceptions.ConnectionError: Error 111 connecting to 172.16.8.128:6379. Connection refused.
修改后重启服务 service redis restart (centos7 请用命令systemctl restart redis.server)
重新连接一下,如果成功,就到这了,如果失败,你有可能遇到下面的问题:
redis.exceptions.ResponseError: NOAUTH Authentication required.
连接的信息里没有设置密码,在相关连接设置里加入 password
redis.exceptions.ConnectionError: Error 111 connecting to 172.16.8.128:6379. Connection refused.
因为我是基于 tornado 连接 redis 的问题,目前到这一步就设置正常了。可以看到已经 cookie 已经变成了 PYCKET_ID 了。问题结束。
redis.exceptions.ConnectionError: Error 111 connecting to 172.16.8.128:6379. Connection refused.

上一篇:vs2015 ncnn


下一篇:【异常】org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions: