ubuntu安装配置php-redis

wget https://codeload.github.com/phpredis/phpredis/zip/2.2.4

cd phpredis-2.2.4/

phpize

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

make prefix=/usr/local all

sudo make prefix=/usr/local install

# phpinfo();exit;

# view phpinfo(), find php.ini

# add ‘extension=redis.so’ to php.ini

sudo service apache2 restart

# review phpinfo()

ref

http://www.verydemo.com/demo_c116_i16353.html

https://github.com/phpredis/phpredis/tree/2.2.4

相关推荐