> 技术文档 > 【Redis】Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected报错解决方案

【Redis】Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected报错解决方案


【Redis】Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected报错解决方案

大家好 我是寸铁👊
总结了一篇【redis】MISCONF Redis is configured to save RDB snapshots报错解决方案✨
喜欢的小伙伴可以点点关注 💝


前言

今天在登录redis时,发现报错信息如下:

【Redis】Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected报错解决方案

具体如下:

Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected

解决方案

这通常是因为redis的服务端没有开启。

输入下面的命令,后台启动即可:

nohup ./redis-server > /dev/null 2>&1 &

命令解读

这条命令是在 Linux/Unix 系统中常用的一种启动Redis服务器的方式,主要作用是启动R