Installation of Redis under Windows

Source: Internet
Author: User
Tags download redis redis server

Redis Server-side program: Https://github.com/dmajkic/redis/downloads

Depending on your operating system, select 32-bit and 64-bit

After extracting the file directory as follows

Redis-server.exe: Service-side program

Redis-cli.exe: Client 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 by n clients (similar to the Apache AB tool).

Running the Redis service (Windows do not close,)

Download Redis counterpart extensions: Https://github.com/nicolasff/phpredis/downloads

Select the corresponding version and copy the Php_redis.dll inside the PHP directory under ext.

and add Extension=php_redis.dll to the php.ini.

Restart Apache.

Test connection

$redis = new Redis ();  $redis->connect ("127.0.0.1", "6379");  The PHP client sets the IP and port  //Store a value  $redis->set ("Say", "Hello World");  echo $redis->get ("say");     Should output Hello World

Installation of Redis under Windows

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.