Home > Backend Development > PHP Tutorial > Install redis and PHPredis extension under Windows

Install redis and PHPredis extension under Windows

WBOY
Release: 2016-07-29 09:10:58
Original
921 people have browsed it

1. First install Redis

Address: https://github.com/MSOpenTech/redis/releases

Find a version. After downloading, unzip it to a folder on a certain disk. Name it here It's called redis.

Then open the cmd command line and execute redis-server.exe in the decompressed folder to open local redis, port 6379

2. Install the PHP redis extension

dll download address: https:// pecl.php.net/package/redis/2.2.7/windows

Download the required dll file, put the .dll file in the ext folder under the folder where PHP is located, modify the PHP configuration file, and add a sentence :extension=php_redis.dll

Restart the environment and use new redis().

The above introduces the installation of redis and PHPredis extension under Windows, including the github content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template