Windows system PHP Configuration Redis

Source: Internet
Author: User
Tags redis version

Online all kinds of tutorials to find a variety of not, finally patchwork redis out of the finally.

PHP Version: 7.1.0;

Redis version: 3.2.10;

Windows version: Windows7;

One, installing Redis under Windows

The first download of the Redis,redis project does not officially support windows. However, the Microsoft Open Technology Team develops and maintains this Windows port for Win64.

Microsoft's GitHub address https://github.com/MSOpenTech/redis/releases.

Here i download the zip, open the compressed package, I am here to extract to the root of the D disk above,, (here waiting to download, the domestic really is super slow, Loading ...).

Open a CMD window using the CD command to switch directories to D:\Redis run

Redis-server.exe redis.conf
At this time another cmd window, the original do not close, otherwise you will not be able to access the server. Switch to Redis directory running Redis-cli.exe-h 127.0.0.1-p 6379 . Set key value pair set MyKey lich Remove key value pair get MyKey

The above I do not map, too lazy (in general, will not error).

Second, configure PHP

The next two DLLs are especially hard to find, and you can't upload files here,,, remember, two are all downloaded

1.http://windows.php.net/downloads/pecl/releases/redis/3.1.3/here for your PHP version and redis to download, I downloaded this

2.HTTP://WINDOWS.PHP.NET/DOWNLOADS/PECL/RELEASES/IGBINARY/2.0.1/here for your PHP version and redis to download, I downloaded this

Then copy the file php_redis.dll,php_redis.pdb,php_igbinary.dll,php_igbinary.pdb (a total of four files) to the PHP directory of ext inside

Third, the accomplished

The rest of the added system variables inside Baidu to find tutorials, this I did not get ...

Output Phpinfo Search Redis, this will be done, did not appear in accordance with my version to re-come again, absolutely.

2018 in Chengdu

Windows system PHP Configuration Redis

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.