时间:2021-07-01 10:21:17 帮助过:11人阅读
你安装好PHP,直接加载php_redis扩展即可。
redis的官网都有,很多推荐
http://redis.io/clients
Predis ? ★ Repository JoL1hAHN Mature and supported
phpredis ? ★ Repository yowgi This is a client written in C as a PHP module.
Rediska ? Repository Homepage shumkov
RedisServer Repository OZ Standalone and full-featured class for Redis in PHP
Redisent ? Repository justinpoliey
Credis Repository colinmollenhour Lightweight, standalone, unit-tested fork of Redisent which wraps phpredis for best performance if available.
推荐:http://www.sitepoint.com/an-introduction-to-redis-in-php-using-predis/
其实是我不熟悉centos,配置PHP.INI需要重启php-fpm,我之前一直重启nginx所以一直以为没有安装成功。