installing PHP's memcache extensionDownload Http://pecl.php.net/package/memcache
TAR-ZXVF memcache-3.0.8.tgz
CD memcache-3.0.8.tgz
/usr/bin/phpize
./configure--enable-memcache
Make && make install
Display complete: Installing Shared extensions:/usr/lib/php/modules/
Add PHP Extension file
Vim/etc/php.ini
Extension=memcache.so
Memcache to install PHPDExtended
Download https://launchpad.net/libmemcached/+download
Download http://pecl.php.net/package/memcached
TAR-ZXVF libmemcached-1.0.18.tar.gz
CD libmemcached-1.0.18.tar.gz
Mkdir/usr/local/share/libmemcached
./configure--prefix=/usr/local/share/libmemcached
Make && make install
TAR-ZXVF memcached-2.2.0.tgz
CD memcached-2.2.0.tgz
/usr/bin/phpize
./configure--with-libmemcached-dir=/usr/local/share/libmemcached/
Make && make install
Add PHP Extension file
Vim/etc/php.ini
Extension=memcached.so
Re-start Nginx
The service Nginx Restart will be able to see the Memcache expansion module.
PHP memcache and memcached cache modules