Redis客户端连接reids服务报错 redis Error: Connection reset by peer  解决办法

问题描述:

  • Redis客户端连接reids服务报错 redis Error: Connection reset by peer

解决办法:

  • 需要注释掉配置文件中的redis.conf 中的bind 127.0.0.1
#只在本地监听,绝来自外网的监听
# bind 127.0.0.1
  • 或者改为 bin 0.0.0.0
#允许所有来路的连接
bind 0.0.0.0
发布了118 篇原创文章 · 获赞 17 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/one312/article/details/105013487