phpstudy 安装redis 扩展

1. 先打开PHPinfo查看当前的PHP版本信息

phpstudy 安装redis 扩展

2.去地址里面下载对应的dll文件

http://windows.php.net/downloads/pecl/releases/redis/2.2.7

http://windows.php.net/downloads/pecl/releases/igbinary/1.2.1

3.复制php_igbinary.dll,php_redis.dll  到对应版本的PHP文件的ext文件中

phpstudy 安装redis 扩展

4.然后修改php.ini 添加扩展

extension=php_igbinary.dll (在前)
extension=php_redis.dll

5.重启PHPstudy

另外 ,如果直接访问localhost +路径的时候访问的是404 , 需要加个index.php 才可以访问, 

 这时候在conf文件加上这句话就行了

 try_files $uri $uri/ /index.php?$query_string;

phpstudy 安装redis 扩展