phpredisadmin 莫名其妙错误,打开了无法显示任何数据

一直用的好好的,某天突然只有页面基本框架,redis数据看不到了。

查日志嘛...

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 634 bytes) in /var/www/wan_redis_admin/predis/lib/Predis/Connection/StreamConnection.php on line 240......

解决方案:

1. 找到StreamConnection.php

2. 

namespace PredisConnection;

use PredisResponseError;
use PredisResponseQueued;
use PredisCommandCommandInterface;
use PredisIteratorMultiBulkResponseSimple;

在下面添加:   ini_set('memory_limit','-1'); //解除内存限制

问题解决。

原文地址:https://www.cnblogs.com/qunshu/p/3618925.html