只需要安装memcached
wget http://pecl.php.net/get/memcached-3.1.5.tgz
yum -y install libmemcached libmemcached-devel
/app/php/bin/phpize
./configure --with-php-config=/app/php/bin/php-config --enable-memcached
make && make install
memcache扩展方法
/app/php/bin/phpize
./configure --with-php-config=/app/php/bin/php-config --enable-memcache
make && make install
再在php.ini最后添加
extension=memcached.so
extension=memcache.so