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

发布时间:2022-06-27 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了Could not connect to Redis at 127.0.0.1:6379: Connection refused脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

记录一次redis开机自启失败的案例。

开机启动后输入redis-cli

报错

[root@Miwifi-R4CM-srv ~]# redis-cliCould not connect to Redis at 127.0.0.1:6379: Connection refusedCould not connect to Redis at 127.0.0.1:6379: Connection refused

当我们输入redis-server的时候,发现是可以启动的,是前台启动的。

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

 

 

 看到这里,我就发现了,这个启动的目录不就是redis刚下载的那个目录吗?

Warning: no config file sPEcified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf

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

 

脚本宝典总结

以上是脚本宝典为你收集整理的Could not connect to Redis at 127.0.0.1:6379: Connection refused全部内容,希望文章能够帮你解决Could not connect to Redis at 127.0.0.1:6379: Connection refused所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。