安装地址:https://github.com/MSOpenTech/redis/releases
添加redis.conf
文件
复制redis.windows.conf,修改名称为redis.conf
启动
redis-server
设置开机自启动
redis-server --service-install redis.windows-service.conf --loglevel verbose
PHP安装redis扩展
查看phpinfo,选择对应的版本
image.png
Redis扩展地址:https://windows.php.net/downloads/pecl/releases/redis/
igbinary地址:https://windows.php.net/downloads/pecl/releases/igbinary/
解压
将php_redis.dll
和php_igbinary.dll
复制到php的ext
目录下
在php.ini
文件中添加
extension=php_igbinary.dll
extension=php_redis.dll
重启php
php -m
image.png