memcache的配置
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.tgzlibevent安装
tar zxvf libevent-1.4.13-stable.tar.gz
cdlibevent-1.4.13-stable
/configure--prefix=/usr/local/libevent
make && make installmemcached安装
tar zxvf memcached-1.4.4.tar.gz
 cdmemcached-1.4.4
./configure--prefix=/usr/local/memcached--with-libevent=/usr/local/libevent
make && make install开机启动
vim /etc/rc.lcoal/usr/local/memcached/bin/memcached -d -m 4000  -u root -p 11211
memcache-php安装
需要用到php开发包  
yuminstallphp-devel
apt-get install php-devel tar vxzf memcache-2.2.5.tgz
 cdmemcache-2.2.5
/usr/bin/phpize
./configure-enable-memcache-with-php-config=/usr/bin/php-config-with-zlib-dir
make&&makeinstall
找到memcache.ini配置
 添加下面配置
extension=memcache.so
  [memcache]
memcache.dbpath="/var/lib/memcache"
memcache.maxreclevel=0
memcache.maxfiles=0
memcache.archivememlim=0
memcache.maxfilesize=0
memcache.maxratio=0相关推荐
  郗瑞强    2020-08-16  
   85590296    2020-07-22  
   jkzyx    2020-06-29  
   luotuo    2020-06-26  
   LinuxJob    2020-06-26  
   ol0    2020-06-26  
   清溪算法君老号    2020-06-25  
   86251043    2020-06-13  
   CSDN0BLOG    2020-06-09  
   ol0    2020-05-26  
   andyhuabing    2020-05-22  
   程序员俱乐部    2020-05-06  
   83530391    2020-05-05  
   ol0    2020-05-02  
   83530391    2020-04-09  
   85590296    2020-03-25  
   carolAnn    2020-03-07  
   大脸猫脸大    2020-03-03  
   ol0    2020-02-18