项目展现问题:
Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to xxx.宝塔外链.ip.xxxx:6379
redis客户端连接失败:

1、宝塔中确认redis端口已放行

2、修改redis的配置
bind:设置为0.0.0.0 是任意ip可访问。如果是按照初始默认的bind的ip是无法随意访问的。


3、配置后重新redis

链接成功

记录
之前redis链接不上是因为第二步骤中bind使用的初始默认的ip,改为0.0.0.0后即可。