windows安装redis
一:下载redis
https://github.com/MicrosoftArchive/redis/releases
Redis-x64-3.2.100.msi 一键安装包
二:下载:php_igbinary.dll
https://windows.php.net/downloads/pecl/releases/igbinary/1.2.1/
下载php_redis.dll
https://windows.php.net/downloads/pecl/snaps/redis/3.1.4rc3/
三:放入php\php-7.2.1-nts\ext
php_igbinary.dll
php_redis.dll
四:php.ini添加扩展:
extension=php_igbinary.dll (此处一定要在php_redis.dll之前)
extension=php_redis.dll
报错:zend_empty_string php7.dll (原因:php_redis.dll,php_igbinary.dll,php7 版本对不上,版本要保持一致:php7.2)
报错:缺少php5.dll (原因:php_redis.dll,php_igbinary.dll,php7 版本对不上,版本要保持一致:php7.2)
phpinfo:
Compiler MSVC15 (Visual C++ 2017) Architecture x86
参考:
Windows下安装Redis服务
https://jingyan.baidu.com/article/0f5fb099045b056d8334ea97.html
在Windows下为PHP5.5安装redis扩展
https://jingyan.baidu.com/article/9989c74631873bf648ecfed4.html