Original address: Windows PHP7 installation of Redis and Redis extensions Phpredis
Windows PHP7 installation of Redis and Redis extensions Phpredis2016-06-08 17:53:00Tags: redisEnvironment
? Win7 64-bit
Apache2.4?
PHP 7.0.7?
Version
Redis 3.2
Download
Redis Download
Https://github.com/MSOpenTech/redis/releases?
Download Redis-x64-3.2.100.zip? This version, with updated download updates
Alternate download
http://download.csdn.net/download/u010006309/9437676?
Redis Extensions for PHP:
Address: Http://pecl.php.net/package/redis?
Php5.6:?http://pecl.php.net/package/redis/2.2.7/windows
Download version:? 5.6 Thread Safe (TS) x64?
Php7.0:http://pecl.php.net/package/redis/3.0.0/windows?
Download version:? 7.0 Thread Safe (TS) x64
2
Https://github.com/neil-chen/NeilChen/tree/master/php_redis??
Installing Redis
Unzip the downloaded Redis-x64-3.2.100.zip to E:\dev\redis
Then execute at the command line?
Redis-server.exe--service-install redis.windows.conf--loglevel verbose?
Installation Complete
Start Redis
net start Redis
Stop Redis
net stop Redis?
Installing Phpredis???
1. Put the extracted php_redis.dll into the PHP extension directory E:\dev\php70\ext below
2. Increase Extension=php_redis.dll in php.ini
3. Restart Apache
4, test, the following code please knock yourself, copy the past may have problems
$redis = new \redis ();
$redis->connect (' 127.0.0.1 ', 6379);
$redis->set (' userName ', ' Tomener ');
echo $redis->get (' userName ');??
Go: Install Redis and Redis extensions under Windows PHP7 Phpredis