Redis服务器消失了

Redis服务器消失了

本文介绍了致命错误:消息"Redis服务器消失了"的未捕获异常"Re​​disException"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一个应用程序突然开始出现错误:

One of my application suddenly started to give error:

Fatal error: Uncaught exception 'RedisException' with message 'Redis server went away' in /var/www/_slim/_core/system/generator.001.php:133 Stack trace: #0 /var/www/_slim/_core/system/generator.001.php(133): Redis->auth('77B1BFFBC0378DF...') #1 /var/www/_slim/_core/system/generator.007.php(144): Generator001->r6_redis_start('R') #2 /var/www/_slim/_core/system/generator.007.php(26): Generator007->HarvestRedis() #3 /var/www/_slim/_core/system/generator.shopping.php(14): Generator007->Generator007() #4 /var/www/_slim/_core/system/generator.last.php(43): Generator008->Generator008() #5 /var/www/_slim/site/home/php/index.php(16): GeneratorLast->GeneratorLast() #6 /var/www/index.php(96): Gui->Gui()
#7 {main} thrown in /var/www/_slim/_core/system/generator.001.php on line 133

我已经重新安装了redis-server,但是到目前为止还没有运气.有什么建议吗?

I have reinstalled redis-server but no luck so far. Any suggestions?

推荐答案

好,作为异常描述,您的Redis服务器已关闭.尝试以下方法:1.查看运行Redis实例的服务器上是否包含任何防火墙(iptables,也许吗?)2.转到您的Web服务器(运行您的php),然后尝试远程登录到Redis服务器3.查看配置的主机/ip是否正确.也许Redis服务器的网络设置中的某些内容已更改.

Well, as the exception describes itself, your Redis server is down.Try the following stuff:1. See if the server that runs the Redis instance contains any firewall on (iptables, maybe?)2. Go to your web server (that runs your php) and try to telnet to your redis server3. See if the configured host/ip is correct. Maybe something in the network settings of the Redis server have been changed.

这篇关于致命错误:消息"Redis服务器消失了"的未捕获异常"Re​​disException"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 02:53