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