Installing Redis under Window

Source: Internet
Author: User
Tags download redis phpinfo install redis

To install Redis under window, first download Redis, unzip it into a directory, such as D:\redis\

Switch to D:\redix under the console

Input: Redis-server.exe redis.conf

Then reopen a cmd console and still switch to D:\redis\

Input: Redis-cli.exe-h 127.0.0.1-p 6379

Can then be used, such as continue input: Set test "Hello World"

Then enter the Get test

It will return to Hello World.

--------------------------------------------------------------------------------------------------------

Use Redis under PHP, use Php_redis.dll, download the corresponding version, put it under the Ext directory under PHP, and

Need to configure php.ini, join Extension=php_redis.dll

When viewing which version you need to Php_redis, you can use the

<?php echo phpinfo ();?> test

Then, restart Wamp

Re-use

<?php echo phpinfo ();?> test

When you see Redis, it means that the installation was successful

On the Internet a lot about the introduction of Redis, today and the opportunity to learn, feel Redis is very high-end, very to force.

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.