Nginx small summary (7) nginx small summary (6) http://www.bkjia.com/ OS /201303/193337.html php access memcache www.2cto.com in php using Memcached server, there are two ways. One is memcache developed by the PHP framework, and the other is memcached of libmemcached. Http://pecl.php.net/package/memcache on the Internet to download the required memcache version! The current stable version 2.2.7. First install www.2cto.com [root @ host2 ~] # Tar zxf memcache-2.2.7.tgz [root @ host2 memcache-2.2.7] #/usr/local/php/bin/phpize [root @ host2 memcache-2.2.7] #. /configure -- enable-memcache -- with-php-config =/usr/local/php/bin/php-config [root @ host2 memcache-2.2.7] # make & make install Build complete. don't forget to run 'make test '. installing shared extensions:/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/display after installation is complete! Modify the [root @ host2 memcache-2.2.7] # vim/usr/local/php/etc/php. ini extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/" extension = memcache. now, you can do it now. The other one is similar! Install libmemcached first.