1.首先把环境准备好,怎样准备环境就很容易了。
首先直接去下载redis扩展:下载地址:http://pecl.php.net/package/redis
任何适合你的php版本都可以
2.下载完成以后解压,把php_redis.dll
,php_redis.pdb,
移动到php/ext
的文件中,如下图
3.然后在php的配置文件中,加上extension=php_redis.dll
4.重启PHPStudy,打开phpinfo
然后查看效果
5.最后别忘了本地要有Redis服务程序才能运行,Windows版下载地址:https://github.com/microsoftarchive/redis/releases
评论 (0)