下载安装扩展
首先下载包,http\://pecl.php.net/package/redis
sudo aptitude install php5-dev
sudo wget http://pecl.php.net/get/redis-2.2.5.tgz
sudo tar zxf redis-2.2.5.tgz
cd redis-2.2.5/
sudo phpize
sudo ./configure
sudo make
sudo make install
修改ini配置
sudo vim /etc/php5/fpm/conf.d/redis.ini
extension=redis.so
测试运行
sudo php5-fpm -t
sudo php5-fpm -m
sudo service php5-fpm reload
本条目发布于[2014年5月20日](https://c4ys.com/archives/222 "23:30")。属于[Linux](PHP(Uncategorized(https://c4ys.com/archives/category/uncategorized)分类,被贴了 [php-redis](redis(https://c4ys.com/archives/tag/redis) 标签。