找不到 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

 

posted on 2020-11-10 12:28  e度空间  阅读(290)  评论(0编辑  收藏  举报