Description, my server is 2008 64-bit php5.4.33
To download the eligible Redis extensions first, whether they meet the criteria can refer to Https://pecl.php.net/package/redis, after entering, click "DLL"
You can see that the red circle is the non thread for IIS, safe is a non-thread thread
The following thread safe is suitable for Apache
The following two are required for download, one is the Redis one is igbinary
https://windows.php.net/downloads/pecl/releases/redis/
https://windows.php.net/downloads/pecl/releases/igbinary/
Redis I can not find 64 version, so directly downloaded 86 version ①https://windows.php.net/downloads/pecl/releases/redis/2.2.7/php_ Redis-2.2.7-5.4-nts-vc9-x86.zip
Igbinary I can not find the 64 version, ②https://windows.php.net/downloads/pecl/releases/igbinary/1.2.0/php_ Igbinary-1.2.0-5.4-nts-vc9-x86.zip directly under version 86.
Then download the MSI file on the server ③https://github.com/microsoftarchive/redis/releases
MSI and zip can be, just I think MSI installation is ready to use, do not want to zip the same configuration (the zip inside EXE double-click can use Redis but a turn off DOS will not be used, should be I did not configure the good)
Now unzip the ①② package and put the php_redis.dll,php_redis.pdb,php_igbinary.dll,php_igbinary.pdb four files in the directory where PHP is located (my study/php54n /ext) Ext Folder
Modify the php.ini, and at the end add
; Php_redis
Extension=php_igbinary.dll
Extension=php_redis.dll
To write in this order, upside down may be wrong
Then install ③
After installation, you can write a php file test
<?php
$redis = new Redis ();
$redis->connect (' 127.0.0.1 ', 6379);
$redis->set (' Test ', ' Hello Redis ');
echo $redis->get (' Test ');
Hello Redis appears to show that it's OK.
IIS Windows Phpstudy Installing the Redis extension