PHP 致命错误:未捕获的异常“CredisException”,并显示消息“与 Redis 服务器的连接丢失


PHP Fatal error: Uncaught exception 'CredisException' with message 'Lost connection to Redis server

几天以来,我经常收到以下错误

apache2: PHP Fatal error:  Uncaught exception 'CredisException' with message 'Lost connection to Redis server.' in /pathtomagento/lib/Credis/Client.php:693#012Stack trace:#012#0 /pathtomagento/lib/Credis/Client.php(538): Credis_Client->read_reply('select')#012#1 /pathtomagento/lib/Credis/Client.php(440): Credis_Client->__call('select', Array)#012#2 /pathtomagento/app/code/community/Cm/Cache/Backend/Redis.php(135): Credis_Client->select(0)#012#3 /pathtomagento/lib/Zend/Cache.php(153): Cm_Cache_Backend_Redis->__construct(Array)#012#4 /pathtomagento/lib/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)#012#5 /pathtomagento/app/code/local/NBSSystem/Nitrogento/Model/Core/Cache.php(28): Zend_Cache::factory('Varien_Cache_Co...', 'Cm_Cache_Backen...', Array, Array, tr in /pathtomagento/lib/Credis/Client.php on line 693

此错误将使我的服务器崩溃,因为来自apache的所有客户端都被使用。

这是在Magento 1.8.1 CE上。Apache 2.2.22, PHP 5.3.10-1ubuntu3.15, redis-cli 2.2.12

有谁知道出了什么问题?

很难提出任何建议,但是在此扩展的github上查看此问题:https://github.com/colinmollenhour/Cm_Cache_Backend_Redis/issues/1

您必须进行一些配置才能使用magento和redis。