日志如下
redis有没有启动侦听端口。
检查下端口有没有开启,防火墙等,还有配置问题。
楼主服务端起的是不是有问题?启动成功应该是有类似于 The server is now ready to accept connections on port 6379 的吧?
你启动Redis的文件出错了。你可以参考下,我这个Redis入坑心得。https://blog.csdn.net/weixin_42293660/article/details/122599630 ,我遇到过,曾经也找了很多答案。