数据库
首页 > 数据库> > 阿里云centos 8 安装PHP redis扩展

阿里云centos 8 安装PHP redis扩展

作者:互联网

找不到 phpize

phpize是属于php-devel的内容,因此在centos中只要运行如下命令:

yum install php-devel

然后就会安装上phpize了。运行phpize是为了生成./configure文件。

 

下载源

wget https://github.com/phpredis/phpredis/archive/5.3.2.zip

解压后进入目录

./configure --with-php-config=/usr/bin/php-config
make && make install  

配置php.ini

 

重启php-fpm

 

标签:php,configure,centos,phpize,phpredis,redis,PHP,config
来源: https://www.cnblogs.com/edukong/p/13953169.html