Redis: the Redis downloaded from github. comdmajkicredisdownloads supports 32bit and 64bit. Select according to your actual situation.
1. install and test redis in windows
Redis: https://github.com/dmajkic/redis/downloads
The downloaded Redis supports 32bit and 64bit. Select 32bit based on your actual situation. Copy the 32bit file content to the directory to be installed, such as: D: \ dev \ redis-2.4.5.
Open a cmd window and use the cd command to switch to the specified directory (D: \ dev \ redis-2.4.5) and run the redis-server.exe redis. conf. The following page is displayed after running:
The hell word is output correctly. the test is successful!
2. extension installation and use of Redis in PHP
Download php_redis.dll File: http://download.csdn.net/download/bluesky321/5355093
First, put php_redis.dll and php_igbinary.dll into the ext folder of PHP, and then add the following code in the php. ini configuration file:
extension=php_igbinary.dllextension=php_redis.dll
Restart the web server
Note: extension = php_igbinary.dll must be placed before extension = php_redis.dll; otherwise, this extension will not take effect.
Usage:
connect('127.0.0.1',6379); $redis->set('test','hello redis'); echo $redis->get('test');?>
Hello redis output!