PHP安装igbinary和redis扩展
igbinary
# wget http://pecl.php.net/get/igbinary-2.0.1.tgz
# tar zxf igbinary-2.0.1.tgz
# cd igbinary-2.0.1
# phpize
# ./configure CFLAGS="-O2 -g" --enable-igbinary
# make
# make install
Installing shared extensions: /data/server/php7/lib/php/extensions/no-debug-non-zts-20160303/
Installing header files: /data/server/php7/include/php/
redis
# wget http://pecl.php.net/get/redis-3.1.3RC2.tgz
# tar zxf redis-3.1.3RC2.tgz
# cd redis-3.1.3RC2
# phpize
# ./configure --enable-redis-igbinary
# make install
Installing shared extensions: /data/server/php7/lib/php/extensions/no-debug-non-zts-20160303/
php.ini
最后在php.ini中添加
# vim /data/server/php7/etc/php.ini
# killall php-fpm
# php-fpm
extension=igbinary.so
extension=redis.so
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/18/php-install-igbinary-and-redis-extensions/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
PHP安装igbinary和redis扩展
igbinary
官网:http://pecl.php.net/package/igbinary
Github:https://github.com/igbinary/igbinary/
# wget http://pecl.php.net/get/igbinary-2.0.1.t……
文章目录
关闭
共有 0 条评论