--Installing the Redis service
Download Redis installation package Http://pan.baidu.com/s/1pJiVFHx
After downloading, unzip the files in the extracted folder (choose 32 or 64 bits according to your system number) to the new folder on the D drive and rename it to Redis
Press "Windows + R" to enter CMD to open the command-line tool
-D: (Go to D-Drive)
-CD Redis (go to Redis directory)
--Redis-server.exe redis.conf (start Redis service)
Test if Redis is installed successfully
--New Open command line cmd
-D: (Go to D-Drive)
-CD Redis (go to Redis directory)
--Redis-cli.exe (enter Redis command operation)
--Set Test "Hello World"
--Get Test
If the successful print out Hello world means that the Redis installation is successful
--Install the PHP Redis extension
Download the Php_redis.dll extension (to download the extension file that corresponds to the PHP version that you are currently using, I am using PHP 5.5)
Http://pan.baidu.com/s/1mgInDZM
After downloading the decompression has 32-bit and 64-bit differentiated selection corresponding decompression to put the extracted files into the Ext folder under the PHP installation package D:/wamp/bin/php/php5.5.12/ext
Php_igbinary.dll Php_redis.dll Two files
Then open php.ini.
Input:
Extension=php_igbinary.dll
Php_redis.dll
This is the order, and then restart the Apache service.
Write a PHP file in the development directory to test it:
<?php
$redis = new Redis ();
$redis->connect (' 127.0.0.1 ', 6379);
$redis->set (' Test ', ' Hello Redis ');
echo $redis->get (' Test ');
?>
The output Hello Redis instructions were installed successfully.
Recommend a visual Redis tool
Http://pan.baidu.com/s/1c08u2Lq
You can see the effect by tapping connect to Redis Server input name and IP address link after opening.
Installation and configuration of Redis + PHP extensions (Windows)