kangle php安装redis扩展
下载phpredis扩展phpredis
解压
wget https://github.com/phpredis/phpredis/archive/4.3.0.tar.gz
tar -zxf 4.3.0.tar.gz
cd phpredis-4.3.0
1
2
3
进入目录之后生成configure 文件(对应版本的php文件夹里面的phpize回车)
/vhs/kangle/ext/tpl_php5633/bin/phpize
1
执行编译(对应版本的php文件夹里面的php-config)
./configure --with-php-config=/vhs/kangle/ext/tpl_php5633/bin/php-config
make && make install
1
2
修改对应版本的ini文件(如:/vhs/kangle/ext/tpl_php5633/php-templete.ini)
extension=redis.so
1
修改之后要重启kangle,因为不重启的话ini文件读取的就是/tmp/里面的ini文件
cd phpredis-4.0.2
/vhs/kangle/ext/tpl_php52/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php52/bin/php-config
make && make install
extension=redis.so
cd phpredis-4.0.2
/vhs/kangle/ext/tpl_php5445/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php5445/bin/php-config
make && make install
extension=redis.so
cd phpredis-4.0.2
/vhs/kangle/ext/tpl_php5538/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php5538/bin/php-config
make && make install
extension=redis.so
cd phpredis-4.0.2
/vhs/kangle/ext/tpl_php5639/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php5639/bin/php-config
make && make install
extension=redis.so
cd phpredis-4.0.2
/vhs/kangle/ext/tpl_php7033/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php7033/bin/php-config
make && make install
extension=redis.so
cd phpredis-4.0.2
/vhs/kangle/ext/tpl_php7125/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php7125/bin/php-config
make && make install
extension=redis.so
cd phpredis-4.0.2
/vhs/kangle/ext/tpl_php7213/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php7213/bin/php-config
make && make install
extension=redis.so
cd phpredis-4.0.2
/vhs/kangle/ext/tpl_php730/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php730/bin/php-config
make && make install
extension=redis.so