Home >Backend Development >PHP Tutorial >!redis
如图代码,connect返回true
报错:Fatal error: Uncaught exception 'RedisException' with message 'protocol error, got 'E' as reply type byte ' in /var/www/test.php:6 Stack trace: #0 /var/www/test.php(6): Redis->set('test', 'hello world') #1 {main} thrown in /var/www/test.php on line 6
我的Redis Version 2.1.0
1、检查一下 redis 的端口和地址是否有错, 端口是否能访问
2、检查一下, redis 是否已经启动