Online all kinds of tutorials to find a variety of not, finally patchwork redis out of the finally.
PHP Version: 7.1.0;
Redis version: 3.2.10;
Windows version: Windows7;
One, installing Redis under Windows
The first download of the Redis,redis project does not officially support windows. However, the Microsoft Open Technology Team develops and maintains this Windows port for Win64.
Microsoft's GitHub address https://github.com/MSOpenTech/redis/releases.
Here i download the zip, open the compressed package, I am here to extract to the root of the D disk above,, (here waiting to download, the domestic really is super slow, Loading ...).
Open a CMD window using the CD command to switch directories to D:\Redis run
Redis-server.exe redis.conf
At this time another cmd window, the original do not close, otherwise you will not be able to access the server. Switch to Redis directory running Redis-cli.exe-h 127.0.0.1-p 6379 . Set key value pair set MyKey lich Remove key value pair get MyKey
The above I do not map, too lazy (in general, will not error).
Second, configure PHP
The next two DLLs are especially hard to find, and you can't upload files here,,, remember, two are all downloaded
1.http://windows.php.net/downloads/pecl/releases/redis/3.1.3/here for your PHP version and redis to download, I downloaded this
2.HTTP://WINDOWS.PHP.NET/DOWNLOADS/PECL/RELEASES/IGBINARY/2.0.1/here for your PHP version and redis to download, I downloaded this
Then copy the file php_redis.dll,php_redis.pdb,php_igbinary.dll,php_igbinary.pdb (a total of four files) to the PHP directory of ext inside
Third, the accomplished
The rest of the added system variables inside Baidu to find tutorials, this I did not get ...
Output Phpinfo Search Redis, this will be done, did not appear in accordance with my version to re-come again, absolutely.
2018 in Chengdu
Windows system PHP Configuration Redis