1、安装phpredis
cd /usr/local/src
上传php-redis.zip
sudo unzip php-redis.zip
cd nicolasff-phpredis-cdd437e/
sudo phpize
++++++++++++
查看是否安装phpize:
dpkg -l|grep php5-dev
如果没有安装的话
sudo apt-get install php5-dev
++++++++++++
sudo sh configure
make
++++++++++++
如果没有make,则 sudo aptitude install make
++++++++++++
make test
make install
2、改php的扩展模块的配置文件
cd /etc/php5/conf.d
sudo cp 10-pdo.ini redis.ini
sudo vim redis.ini
------------------------
; configuration for php PDO module
; priority=10
extension=redis.so
------------------------
3、重启nginx
sudo service nginx restart
阅读(602) | 评论(0) | 转发(0) |