Windows Redis PHP Installation

Source: Internet
Author: User
Tags download redis

1. Download Redis's win version client

: Http://code.google.com/p/servicestack/wiki/RedisWindowsDownload

2. Select 32bit,64bit Installation

redis-server.exe: Service Program

redis-check-dump.exe: Local Database check

redis-check-aof.exe: Update log check

Redis-benchmark.exe: Performance test to simulate the simultaneous sending of M-sets/gets queries (similar to Apache's AB tools) by n clients.

redis.conf configuration file

3. Run Redis-server.exe redis.conf from DOS into the installation directory

4. Start the cmd window to remain open, and the Redis service shuts down after closing. Open another window to connect the Reids server

Redis-cli.exe-h 202.117.16.133-p 6379

6.php Increase Reids Extension

6.1. Download the Phpredis.dll expansion pack first. : Https://github.com/nicolasff/phpredis/downloads

See TS VC9 with Phpinfo. Then the downloaded version will correspond well

TS version phpredis_5.4_vc9_ts.7z NTS version phpredis_5.4_vc9_nts.7z

2. After extracting two files, two files are copied to the Ext directory of PHP directory.

3, modify the php.ini file. Join extension Extensions

Extension=php_igbinary.dll
Extension=php_redis.dll

4. Restart Apache to view the Phpinfo interface. The following indicates a successful installation

5. Phpredis Hellow Word start your redis use

<?php     $redis= newRedis();                   //redis对象     $redis->connect("192.168.60.6","6379"); //连接redis服务器     $redis->set("test","Hello World");      //set字符串值     echo$redis->get("test");               //获取值?>

Windows Redis PHP Installation

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.