redis Configuration
Redis supports 32-bit and 64-bit. This according to the actual circumstances of your system platform selection, here we Redis-x64-xxx.zip download archive to the D drive, unzip the folder renamed redis.
Open a cmd window cd to the directory to D: \ redis run:
redis-server.exe redis.windows.conf
If you want convenience, you can put the path redis added to the system environment variable, so you lose save path, and that redis.windows.conf back can be omitted, if omitted, the default is enabled. After entering, it will display the following screen:
This time another start a cmd window, do not close the original, otherwise they can not access the server.
Redis run switch to the directory:
redis-cli.exe -h 127.0.0.1 -p 6379
Set key-value pair:
set myKey abc
Remove the key-value pairs:
get myKey
Operation Command successfully explained successfully configured redis, the next configuration phpredis
phpredis Configuration
phpredis Extended Download: https://windows.php.net/downloads/pecl/releases/redis/
Extending the sequence: http://windows.php.net/downloads/pecl/releases/igbinary/ (and use the same phpredis)
- Above extensions downloaded on demand, presentation environment using php5.45, nginx set up the service, download the phpredis2.2.7-nts in Fig.
- Unzip the file directory phpredis Figure (igbinary extend the same):
- The above copy files into the directory file php ext directory FIG (igbinary extended same):
- Modify the php.ini file on the file
extension=php_redis.dll
open in FIG extension:
It should be noted extension=php_igbinary.dll
on the extension=php_redis.dll
front
6. The above operation ends to restart nginx syntax phpinfo () can check whether the extended properly introduced, as indicated to be incorporated properly:
7. The Redis the DEMO test, the test results are shown: