redis连接错误:Could not connect to Redis at 127.0.0.1:6379: Connection refused

Posted allenyip

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了redis连接错误:Could not connect to Redis at 127.0.0.1:6379: Connection refused相关的知识,希望对你有一定的参考价值。

在启动redis之后,想要停止服务的时候,发现了这个错误:

技术图片

原因:

在之前将redis前台启动的时候,是没有pid文件的,之后我将redis改成后台启动,但是没有将redis进程杀掉。

解决方法:

技术图片

将redis进程杀掉就可以了。

以上是关于redis连接错误:Could not connect to Redis at 127.0.0.1:6379: Connection refused的主要内容,如果未能解决你的问题,请参考以下文章

java 连接 redis集群时报错:Could not get a resource from the pool

Could not connect to Redis at 127.0.0.1:6379: 由于目标计算机积极拒绝,无法连接。(极简解决办法)

连接远程的redis 集群报Could not get a resource from the pool异常

Redis连接时报错:Could not connect to Redis at 127.0.0.1:6379: Connection refused

Redis连接时报错:Could not connect to Redis at 127.0.0.1:6379: Connection refused

JedisCluster连接redis集群一直报Could not get a resource from the pool