Wamp Extended Redis under Window

Source: Internet
Author: User

In the work of the use of Redis this function, need to expand, on the Internet to find some information, self-made records


Https://github.com/nicolasff/phpredis/downloads

Go to this place to download, you can find their corresponding version, the first two have 32-bit and 64-bit points, because my local PHP version of 5.2 Using the third compression package. Open the corresponding DLL restart Apache, remember to synchronize Php/php.ini and Apache/php.ini update


Run the Redis service before testing in a PHP file, with the following file contents in the first and second compressed packages

Double-click the installation directory under Redis-server.exe to start the Redis cache service.
You can open the cache client by double-clicking Redis-cli.exe in the installation directory.


You can put these two start-up actions into the file to modify the bat to run automatically

Start "Redis-server"/min cmd/c redis-server D:\redis\redis.confstart "redis-client"/min cmd/c redis-cli


After running the Redis service, you can run a PHP program test

$redis = new Redis (), $redis->connect (' 127.0.0.1 ', 6379), $redis->set (' Test ', ' helloworld! '); echo $redis->get (' Test ');


Wamp Extended Redis under Window

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.