- 下载扩展
wget https://pecl.php.net/get/redis-5.1.0.tgz
tar xzf redis-5.1.0.tgz
cd redis-5.1.0/
遇到一个问题
./configure --with-php-config=/www/server/php/72/bin/php-config运行之后报错
解决方法:
执行phpize
你们的位置可能与我不同,find / -name phpize 搜索一下
2.执行configure
./configure --with-php-config=/www/server/php/72/bin/php-config
3. 编译安装
./configure --with-php-config=/www/server/php/72/bin/php-config
安装成功会有一个地址:/www/server/php/72/lib/php/extensions/no-debug-non-zts