首先查看php5.6是VC9还是VC11
phpinfo()中的Compiler 显示VC11
然后查看Architecture 是x86还是x64 显示x86
在http://windows.php.net/downloads/pecl/releases/redis中选择2.2.7版本
将下载的php_redis.dll拷贝到php/ext目录中
在php.ini中添加extension=php_redis.dll
之后重启web服务
在phpinfo中搜索redis
出现
redis
| Redis Support | enabled |
|---|---|
| Redis Version | 2.2.7 |
即为成功