<p>Redis Desktop Manager是一款好用的Redis桌面管理工具,支持命令控制台操作,以及常用,查询key,rename,delete等操作,最近在使用Redis Desktop Manager连接redis的时候,一直提示连接不上,并报错:“Can't connect to redis-server”。最后通过上网找资料,各种尝试,最后终于解决了。</p><p style="text-align: center;"><img src="/upload/content/20181212/1544551455855592.png" title="Redis Desktop Manager报错:Can't connect to redis-server" width="402" height="414" alt="Redis Desktop Manager报错:Can't connect to redis-server"/></p><p><strong>“Can't connect to redis-server”报错可能出现的原因:</strong></p><p><span style="font-size: 14px; color: rgb(255, 0, 0);">1、你虚拟机上的防火墙没有关;</span></p><p><span style="font-size: 14px; color: rgb(255, 0, 0);">2、端口没有开放;</span></p><p><span style="font-size: 14px; color: rgb(255, 0, 0);">3、bind绑定ip的配置问题;</span></p><p><strong style="white-space: normal;">“Can't connect to redis-server”报错解决过程如下</strong></p><p>我的出现“Can't connect to redis-server”报错原因是redis服务未打开,这里提供 Linux打开方式:</p><p>1、进入redis的src目录<br/></p><p>./redis-server #非守护进程打开方式</p><p>./redis-server /etc/redis/redis.conf #守护进程打开方式<br/></p><p>2、redis.conf参数未修改,如图</p><p style="text-align: center;"><img src="/upload/content/20181212/1544551455264313.png" title="Redis Desktop Manager报错:Can't connect to redis-server" width="550" height="" alt="Redis Desktop Manager报错:Can't connect to redis-server"/></p><p style="text-align: center;">注释上图中红框中的参数<br/></p><p>3、修改下图中参数</p><p style="text-align: center;"><img src="/upload/content/20181212/1544551455978746.png" title="Redis Desktop Manager报错:Can't connect to redis-server" width="550" height="" alt="Redis Desktop Manager报错:Can't connect to redis-server"/></p><p>将上图中参数protected-mode yes改为no这样在登录时不需要密码(这样设置不安全)</p><p>总结:好了以上就是关于“Redis桌面管理工具Redis Desktop Manager报错:Can't connect to redis-server”的全部内容了,估计大家连接不通遇到的终极问题都是前两条,其他的问题,网上随便百度一下都可以解决了!</p>