1. Download Redis's win version client
: Http://code.google.com/p/servicestack/wiki/RedisWindowsDownload
2. Select 32bit,64bit Installation
redis-server.exe: Service 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 (similar to Apache's AB tools) by n clients.
redis.conf configuration file
3. Run Redis-server.exe redis.conf from DOS into the installation directory
4. Start the cmd window to remain open, and the Redis service shuts down after closing. Open another window to connect the Reids server
Redis-cli.exe-h 202.117.16.133-p 6379
6.php Increase Reids Extension
6.1. Download the Phpredis.dll expansion pack first. : Https://github.com/nicolasff/phpredis/downloads
See TS VC9 with Phpinfo. Then the downloaded version will correspond well
TS version phpredis_5.4_vc9_ts.7z NTS version phpredis_5.4_vc9_nts.7z
2. After extracting two files, two files are copied to the Ext directory of PHP directory.
3, modify the php.ini file. Join extension Extensions
Extension=php_igbinary.dll
Extension=php_redis.dll
4. Restart Apache to view the Phpinfo interface. The following indicates a successful installation
5. Phpredis Hellow Word start your redis use
<?php
$redis
=
new
Redis();
//redis对象
$redis
->connect(
"192.168.60.6"
,
"6379"
);
//连接redis服务器
$redis
->set(
"test"
,
"Hello World"
);
//set字符串值
echo
$redis
->get(
"test"
);
//获取值
?>
|
Windows Redis PHP Installation