IIS Windows Phpstudy Installing the Redis extension

Source: Internet
Author: User
Tags vc9

Description, my server is 2008 64-bit php5.4.33

To download the eligible Redis extensions first, whether they meet the criteria can refer to Https://pecl.php.net/package/redis, after entering, click "DLL"

You can see that the red circle is the non thread for IIS, safe is a non-thread thread

The following thread safe is suitable for Apache

The following two are required for download, one is the Redis one is igbinary

https://windows.php.net/downloads/pecl/releases/redis/

https://windows.php.net/downloads/pecl/releases/igbinary/

Redis I can not find 64 version, so directly downloaded 86 version ①https://windows.php.net/downloads/pecl/releases/redis/2.2.7/php_ Redis-2.2.7-5.4-nts-vc9-x86.zip

Igbinary I can not find the 64 version, ②https://windows.php.net/downloads/pecl/releases/igbinary/1.2.0/php_ Igbinary-1.2.0-5.4-nts-vc9-x86.zip directly under version 86.

Then download the MSI file on the server ③https://github.com/microsoftarchive/redis/releases

MSI and zip can be, just I think MSI installation is ready to use, do not want to zip the same configuration (the zip inside EXE double-click can use Redis but a turn off DOS will not be used, should be I did not configure the good)

Now unzip the ①② package and put the php_redis.dll,php_redis.pdb,php_igbinary.dll,php_igbinary.pdb four files in the directory where PHP is located (my study/php54n /ext) Ext Folder

Modify the php.ini, and at the end add

; Php_redis
Extension=php_igbinary.dll
Extension=php_redis.dll

To write in this order, upside down may be wrong

Then install ③

After installation, you can write a php file test

<?php
$redis = new Redis ();
$redis->connect (' 127.0.0.1 ', 6379);
$redis->set (' Test ', ' Hello Redis ');
echo $redis->get (' Test ');

Hello Redis appears to show that it's OK.

IIS Windows Phpstudy Installing the Redis extension

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.