更新时间:2022-09-27 11:37:40
debian wheezy的软件包php5-memcached 没有igbinary支持,也没有提供php5-igbinary
由于业务需要,手动编译添加igbinary支持。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#删除php5-memcached软件包 apt-get remove php5-memcached #安装igbinary pecl install igbinary
echo "extension=igbinary.so" > /etc/php5/fpm/conf .d /20-igbinary .ini
#安装编译依赖包 apt-get install php5-dev make libmemcached-dev pkg-config
#下载并编译源码包 pecl download memcached tar zxvf memcached*.tgz
cd memcached*/
phpize . /configure -- enable -memcached-igbinary --disable-memcached-sasl
make make install
echo "extension=memcached.so" > /etc/php5/fpm/conf .d /20-memcached .ini
|
新的模块分别是
1
2
|
/usr/lib/php5/20100525/igbinary .so
/usr/lib/php5/20100525/memcached .so
|