手记

php redis 扩展安装

wget --no-check-certificate http://github.com/nicolasff/phpredis/tarball/master -O phpredis.tar.gz

tar zxvf phpredis.tar.gz

cd nicolasff-phpredis-b9a16b5

phpize

./configure --with-php-config=/usr/bin/php-config

make

make install

 

echo "extension=redis.so" > /etc/php5/cli/conf.d/redis.ini

/etc/init.d/php-fpm reload

0人推荐
随时随地看视频
慕课网APP