先说问题吧
php 安装redis扩展ext/standard/php_smart_str.h: No such file or directory
按照网上的教程安装了redis的扩展,执行到 编译安装 make && make install 时,报出了这样的错误,是因为扩展不支持php7,需要我们在 github 上拉 php7 的 redis扩展
git clone https://github.com/phpredis/phpredis.git
cd phpredis
git checkout php7
phpize
./configure
//有时需要加上php-config
./configure --with-php-config=/usr/bin/php