Installing Redis and Phpredis extensions in a Windows environment
1. First Configure PHP:
Need to find PHP extension folder in Windows Integration Environment, ext, and then find your own PHP. dll file on the Web
For example, my phpinfo inside show is Arti. : x86, so need to choose X86, this is not related to the system, my system is still 64 bit!
Then my integration environment is TS instead of NTS this can be found in the Phpinfo file!
Download File Php_igbinary.dll,php_redis.dll
Then modify the configuration file PHP.ini (in the PHP folder and in Apache)
Extension=php_igbinary.dll
Extension=php_redis.dll
2. In the installation of Windows Redis,redis very much like the green version of the software, directly copy the folder to a folder, and then open two DOS windows, a boot service, a client execution command
3. Finally, you can find this redis extension in Phpinfo and write a testredis.php in the WWW directory.
<?php
$redis = new Redis ();
$redis->connect (' 127.0.0.1 ', 6379);
$redis->set (' Test ', ' Hello Redis ');
echo $redis->get (' Test ');
?>
The output is correct and the operation succeeds
Installing Redis and Phpredis extensions in a Windows environment