【问题标题】:PHP Fatal error: Uncaught exception 'CredisException' with message 'Lost connection to Redis serverPHP 致命错误:未捕获的异常 'CredisException' 带有消息 'Lost connection to Redis 服务器
【发布时间】:2015-01-26 09:26:55
【问题描述】:

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

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

有谁知道怎么回事?

【问题讨论】:

    标签: php apache magento redis fatal-error


    【解决方案1】:

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

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

    【讨论】:

    • 谢谢。我也在那里发布了这个问题。如果我得到答案,我也会在这里发布。
    猜你喜欢
    • 1970-01-01
    • 2014-09-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-09
    • 2013-08-24
    • 2012-04-25
    • 2014-03-17
    相关资源
    最近更新 更多