Installation and configuration of Redis + PHP extensions (Windows)

Source: Internet
Author: User
Tags download redis php redis redis server

--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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.