开发者社区> 问答> 正文

redis报错问题

redis_php
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

展开
收起
蛮大人123 2016-02-05 16:14:37 5577 0
1 条回答
写回答
取消 提交回答
  • 我说我不帅他们就打我,还说我虚伪

    两步解决你的问题:
    1.检查 redis 的端口和地址是否有错, 端口是否能访问
    2检查, redis 是否已经启动

    2019-07-17 18:37:53
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
ApsaraDB for Redis——与创客同行 立即下载
微博的Redis定制之路 立即下载
云数据库Redis版的开源之路 立即下载