PHP安装igbinary和redis扩展

igbinary

1
2
3
4
5
6
7
8
9
# 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

1
2
3
4
5
6
7
# 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中添加

1
2
3
# vim /data/server/php7/etc/php.ini
# killall php-fpm
# php-fpm
1
2
extension=igbinary.so  
extension=redis.so

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :