memcache的安装
安装包下载:
wget http://memcached.googlecode.com/files/memcached-1.4.4.tar.gz
wgethttp://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz
wget http://pecl.php.net/get/memcache-2.2.5.tgz
libevent安装
cdlibevent-1.4.13-stable
/configure--prefix=/usr/local/libevent
make && make installmemcached安装
cdmemcached-1.4.4
./configure--prefix=/usr/local/memcached--with-libevent=/usr/local/libevent
make && make install
开机启动
memcache-php安装
yuminstallphp-devel
apt-get install php-develcdmemcache-2.2.5
/usr/bin/phpize
./configure-enable-memcache-with-php-config=/usr/bin/php-config-with-zlib-dir
make&&makeinstall
找到memcache.ini配置
[memcache]
memcache.dbpath="/var/lib/memcache"
memcache.maxreclevel=0
memcache.maxfiles=0
memcache.archivememlim=0
memcache.maxfilesize=0
memcache.maxratio=0
85463363 
![[爱了]](/js/img/d1.gif)
![[尴尬]](/js/img/d16.gif)