!redis

WBOY
WBOYOriginal
2016-06-20 12:40:011106browse


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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:图片上传 401Next article:2016年读书计划