linux安装redis php扩展,简单几步解决问题

在linux系统安装php的redis扩展的简单几个步骤,按顺序安装即可

php redis扩展安装
cd /usr/local/src
wget https://pecl.php.net/get/redis-4.0.0.tgz
tar zxvf redis-4.0.0.tgz
cd redis-4.0.0
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
cd /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226
vim /usr/local/php/etc/php.ini 
(extension="redis.so")
service php-fpm restart

你可能感兴趣的:(linux)