如图代码,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 是否已经启动