1. Enter Phpinfo,
Select the appropriate Redis version and extension based on the above information
2. Go to link https://github.com/MicrosoftArchive/redis/releases redis, I download the redis-x64-3.0.503, file download unzip
Go to the link https://pecl.php.net/package/redis download extension, expand the version number that corresponds to Redis
corresponding to download 3.0.0 version, enter DLL, corresponding information select the link in the red box to download
3. After the download decompression, put the Php_redis.dll file into the Php/ext folder, put in the extension file, we should introduce the use of (note because I use the Wampserver integration environment, so it is in the php.ini file under Apache to make changes, Instead of changing the INI file under PHP)
Enter the php.ini file, add a sentence (note: PHP7 version is not required Php_igbinary.dll extension)
Restart the PHP environment and enter Phpinfo again. will appear
Note that the installation was successful, this is the version number of Redis, and then we start the service side of Redis
Write code
Output
OK installation Successful
Installing Redis and extensions under Windows PHP7