欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

!redis

程序员文章站 2024-01-17 09:46:10
...
如图代码,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 是否已经启动

相关标签: !redis