Redis Local Installation

Source: Internet
Author: User

Redis is installed and used locally

1, first download the Redis installation package, as follows

Http://pecl.php.net/package/redis/2.2.7/windows

Enter Phpinfo () to view the PHP version for the appropriate download, note the version

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/A1/wKioL1WBQI2gQJ2kAAB7u8zWXxY827.jpg "title=" A ( B3pv79j6e5lp9iohj9ejo.png "alt=" Wkiol1wbqi2gqj2kaab7u8zwxxy827.jpg "/>

2. After the download is completed, put the Php_redis.dll into ext, add the Extension=php_redis.dll in the php.ini

3. Restart the server



Installing the Redis local server after the extension installation is complete

Https://github.com/dmajkic/redis/downloads. Redis supports 32bit and 64bit to download. Choose according to your actual situation

Open cmd Run for installation

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/A1/wKioL1WBQcWzVpjtAAILnTrDvXc958.jpg "title=" (6_ud{ M06nl ' EBI%HVTL@UJ.jpg "alt=" Wkiol1wbqcwzvpjtaailntrdvxc958.jpg "/>

This means that Redis is installed successfully.

Open a cmd again

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/A1/wKioL1WBQnCAXM1NAAF2Goj-3vk494.jpg "title=" VO7PK] 62c6k8gy8p) 0i9rhu.png "alt=" Wkiol1wbqncaxm1naaf2goj-3vk494.jpg "/>

At this point, the Redis installation is complete


The PHP code is tested as follows

<?php$redis = new Redis (); $redis->connect (' 127.0.0.1 ', 6379); $ret = $redis->set (' name ', ' Hello World '); echo $ Redis->get (' name ');? >

This allows the value to be stored


This article is from the "fiting" blog, make sure to keep this source http://zrwx123.blog.51cto.com/10193196/1662861

Redis Local 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.