tar -zxvf memcache-3.0.8.tgz
cd memcache-3.0.8
/usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config --with-zlib-dir
make
make install
Installing shared extensions: ls /usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/
ll ls /usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/
添加vi /usr/local/php/lib/php.ini
extension=memcache.so
/etc/init.d/php-fpm restart #重启php
service nginx restart #重启nginx