Heim  >  Artikel  >  php教程  >  PHP5.5安装php-redis扩展

PHP5.5安装php-redis扩展

WBOY
WBOYOriginal
2016-06-13 09:35:21935Durchsuche

windows下开发用的xampp集成的环境,想装个php-redis扩展,扩展的github地址: https://github.com/nicolasff/phpredis

描述里找到windows下安装的过程: https://github.com/nicolasff/phpredis/issues/213#issuecomment-11361242

里面讲的php版本还是5.4,看了下我的php是5.5.6,只能找别的的,5.4版本的可以考虑用这个安装指导

然后找5.5的扩展,找到这个下载列表:

php_redis-5.5-vc11-ts-x86-00233a.zip http://d-h.st/4A5
php_igbinary-5.5-vc11-ts-x86-c35d48.zip http://d-h.st/QGH

php_redis-5.5-vc11-nts-x86-00233a.zip http://d-h.st/uGS
php_igbinary-5.5-vc11-nts-x86-c35d48.zip http://d-h.st/bei

php_redis-5.5-vc11-ts-x64-00233a.zip http://d-h.st/1tO
php_igbinary-5.5-vc11-ts-x64-c35d48.zip http://d-h.st/rYb

php_redis-5.5-vc11-nts-x64-00233a.zip http://d-h.st/N0d
php_igbinary-5.5-vc11-nts-x64-c35d48.zip http://d-h.st/c1a

看下自己phpinfo的信息

就选择 ts-x86 的包下载,将下载解压后的php_igbinary.dll和php_redis.dll放入php的ext目录下

然后修改php.ini,加入

; php-<span>redis
extension</span>=php_igbinary.<span>dll
extension</span>=php_redis.dll

重启apache,查看phpinfo就有redis扩展的信息了

 

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn