Installing the Redis extension for PHP5.6.14 under Windows 64-bit

Source: Internet
Author: User
Tags phpinfo redis server

I. PHP installation REDIS extensions

1. use Phpinfo () To view information about the current version

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/8E/A2/wKioL1jHj_WzMuGgAACO8A6CnZw665.png-wh_500x0-wm_ 3-wmp_4-s_1076137895.png "title=" qq picture 20170314143600.png "alt=" Wkiol1jhj_wzmuggaaco8a6cnzw665.png-wh_50 "/>

2. According to the PHP version number, the compiler version number and CPU architecture

Choose Php_redis-2.2.5-5.6-nts-vc11-x64.zip and Php_igbinary-1.2.1-5.5-nts-vc11-x64.zip

http://windows.php.net/downloads/pecl/snaps/redis/2.2.5/

Http://windows.php.net/downloads/pecl/releases/igbinary/1.2.1/


650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/8E/A2/wKioL1jHkNOQNhazAADf4wnCOv0089.png-wh_500x0-wm_ 3-wmp_4-s_3650521819.png "style=" Float:none; "title=" QQ picture 20170314143956.png "alt=" Wkiol1jhknoqnhazaadf4wncov0089.png-wh_50 "/>

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/8E/A3/wKiom1jHkNODlY84AACzYeFOEYs633.png-wh_500x0-wm_ 3-wmp_4-s_705103740.png "style=" Float:none; "title=" QQ picture 20170314143948.png "alt=" Wkiom1jhknodly84aaczyefoeys633.png-wh_50 "/>

3. After decompression, copy the Php_redis.dll and Php_igbinary.dll to the PHP ext directory

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/8E/A3/wKiom1jHkT2j_y7rAAE_KKi3_as011.png-wh_500x0-wm_ 3-wmp_4-s_2499069267.png "title=" qq picture 20170314144151.png "alt=" Wkiom1jhkt2j_y7raae_kki3_as011.png-wh_50 "/>

4. Modify the php.ini to include in the document:

Extension=php_igbinary.dll

Extension=php_redis.dll

Note: Extension=php_igbinary.dll must be placed in front of extension=php_redis.dll, otherwise this extension will not take effect

5. After restarting Apache or nginx, use Phpinfo to see if the extension was installed successfully

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/8E/A2/wKioL1jHkYXB5Qr_AAARkKKWOI8998.png-wh_500x0-wm_ 3-wmp_4-s_2197914061.png "title=" qq picture 20170314144306.png "alt=" Wkiol1jhkyxb5qr_aaarkkkwoi8998.png-wh_50 "/>

Stole a picture of the php.ini position of the modified

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/8E/A6/wKioL1jH4ujSx1HXAABdV1k_0Cw089.png-wh_500x0-wm_ 3-wmp_4-s_364121791.png "title=" 221951187753473.png "alt=" Wkiol1jh4ujsx1hxaabdv1k_0cw089.png-wh_50 "/>

Attention:

Wamp installation of Redis, in addition to here F:\wamp\bin\php\php5.4.16\ext add two DLL files, under F:\wamp\bin\php\php5.4.16 under the php.ini to join the configuration, Apache under the F:\wamp\bin\apache\Apache2.4.4\bin inside the php.ini also to join the configuration, otherwise the configuration fails (Redis not found will appear)

6. Local Test Redis

<?php
/**
* @file test11.php
* @author Linlin
* @date March 14, 2017 2:56:21
* @brief
*/
Echo Phpinfo (); exit;
$redis = new Redis ();
$redis->connect (' 127.0.0.1 ', 6379);
$redis->set (' Test ', ' Hello Test ');
echo $redis->get (' Test ');
Exit


Here there is a ' Redis server went away ' hint, after Baidu, found that the Redis service is not open, this time will download the Redis under Windows, http://www.cnblogs.com/tommy-huang/p /6093813.html, it's important to have a word in it. The Redis project does not officially support windows. However, the Microsoft Open Technology Team develops and maintains this Windows port for Win64. "There is still a place to find, according to the address of the download can be resolved, I downloaded the redis-x64-3.2.100.zip, and then double-click Redis-server.exe to start the Redis server, double-click Redis-cli.exe to open the Redis client (used to execute the command, access the server), shown as shown, proved successful

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/8E/A7/wKiom1jH33KjFKRiAAC-eQnftu4588.png-wh_500x0-wm_ 3-wmp_4-s_3957661564.png "style=" Float:none; "title=" QQ picture 20170314201520.png "alt=" Wkiom1jh33kjfkriaac-eqnftu4588.png-wh_50 "/>

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/8E/A7/wKiom1jH33SCJ5gbAACeodRDQoQ738.png-wh_500x0-wm_ 3-wmp_4-s_1741969678.png "style=" Float:none; "title=" QQ picture 20170314201523.png "alt=" Wkiom1jh33scj5gbaaceodrdqoq738.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/8E/A6/wKioL1jH34_i4_xIAABLV4FavMQ392.png-wh_500x0-wm_ 3-wmp_4-s_3657267160.png "title=" qq picture 20170314201607.png "alt=" Wkiol1jh34_i4_xiaablv4favmq392.png-wh_50 "/> And then it's going to be cached in Redid.

Note: This article is my installation of the entire process, there may be some loopholes, welcome to add

This article is from "The only way to program" blog, please be sure to keep this source http://linlin2017.blog.51cto.com/8346821/1906329

Installing the Redis extension for PHP5.6.14 under Windows 64-bit

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.