wget http://pecl.php.net/get/memcache-2.2.7.tgz
tar -zxvf memcache-2.2.7.tgz
cd memcache-2.2.7/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
wget http://pecl.php.net/get/memcache-2.2.7.tgz
tar -zxvf memcache-2.2.7.tgz
cd memcache-2.2.7/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config
(如果失败重新来换作)
./configure --enable-memcache --with-php-config=/usr/bin/php-config --with-zlib-dir
make && make install