【发布时间】:2016-11-20 05:09:21
【问题描述】:
以下是错误信息:
Fatal error: Uncaught exception 'RedisException' with message 'Can't connect to 127.0.0.1:6379' in /var/www/html/index.php:3 Stack trace:
#0 /var/www/html/index.php(3): Redis->connect('127.0.0.1', 6379) #1 {main} thrown in /var/www/html/index.php on line 3
但实际上当使用redis-cli连接127.0.0.1:6379时,它仍然有效。
phpredis 是从 GitHub 克隆出来的,带有 master 分支,本地 phpversion 是 5.4。
谢谢!
【问题讨论】: