Windows中安装php5.6的redis扩展

首先查看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

即为成功

点赞

发表回复

电子邮件地址不会被公开。必填项已用 * 标注