Memcache's job is to maintain a huge hash table in the memory of a dedicated machine to store some of the arrays and files that are often read and written, thus greatly improving the efficiency of the website and reducing the reading and writing pressure of the backend database.
You need to install libevent support before installing memcached:
1. Installing Memcache
Or use the wget link address to getLibevent and Memcache
cd/home/Bluetar ZXVF memcached-1.4.5. tar.gz Tar zxvf libevent-1.4.14b-Stable.tar.gz# install LIBEVENTCD libevent-1.4.14b- stable./configure makemake install# install Memcachecd/home/blue/memcached-1.4.5./ Configure--prefix=/usr/local/src/memcached/memcached-1.4.5--with-libevent=/u sr/local/src/memcached/ Libevent-1.4.14bmake make install
#wget http://pecl.php.net/get/memcache-2.2.6.tgz
# tar
zxf memcache-2.2.6.tgz
# cd php/bin/phpize
#/usr/local/php/bin/phpize
#./configure--with-php-config=/usr/local/php/bin/php-config --enable=memcache
# make
# make Install
Finally, add the following configuration information to the php.ini file
Extension_dir = "/usr/local/php/extensions/no-debug-non-zts-20060613/"
extension=memcache. So
Restart Apache
./apachectl Restart
Install memcache and open memcache extensions under Linux