CentOS release 6.5下安装PHP-memcached
1、下载libevent-1.4.13-stable.tar.gz
#tar -xzvflibevent-1.4.13-stable.tar.gz
#cdlibmemcached-1.4.13
#./configure --prefix=/usr/local/libevent --with-memcached
#make&&make install
如下图所示:
2、下载memcached-2.2.0.tgz
#tar -xzvfmemcached-2.2.0.tgz
#cdmemcached-2.2.0
#./configure --enable-memcached --with-PHP-config=/xxx/xxx/PHP/bin/PHP-config --with-libmemcached-dir=/usr/local/libmemcached --disable-memcached-sasl
#make&&make test&&make install
#ll/xxxx/xxx/PHP/lib/PHP/extensions/no-debug-non-zts-20100525/memcached.so
#vim /home/program/PHP/etc/PHP.ini
如下图所示:
4、重启PHP-fpm进程
5、重启apache进程
如下图所示: