io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379

Redis连接失败:解决Windows上Lettuce连接127.0.0.1:6379的问题
文章描述了在Windows环境下使用Redis时遇到的连接问题,包括RedisConnectionException和iptables设置。作者探讨了配置错误和密码验证问题,最终解决了连接问题。

Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379

Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379

/sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT

Microsoft Windows [版本 10.0.19045.2965]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Administrator>e:

E:\>
E:\>cd E:\Document_Redis_Windows\redis-2.4.5-win32-win64\64bit

E:\Document_Redis_Windows\redis-2.4.5-win32-win64\64bit>
E:\Document_Redis_Windows\redis-2.4.5-win32-win64\64bit>redis-server.exe redis.conf
[38148] 25 Nov 02:26:14 * Server started, Redis version 2.4.5
[38148] 25 Nov 02:26:14 * DB loaded from append only file: 0 seconds
[38148] 25 Nov 02:26:14 * The server is now ready to accept connections on port 6379
[38148] 25 Nov 02:26:15 - DB 0: 15 keys (0 volatile) in 32 slots HT.
[38148] 25 Nov 02:26:15 - 0 clients connected (0 slaves), 1191960 bytes in use



io.lettuce.core.RedisConnectionException-优快云博客

为什么提示不直接出来密码错误呢,然后密码复制到配置文件哪里错了。晕了。

ERR invalid password-优快云博客

吃个饭然后认真又看了一下,测试一下环境,对了

eclipse4.7 yaml editor 1.9.0_eclipse yaml editor 使用_spencer_tseng的博客-优快云博客

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

13805029595

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值