linux下安装php扩展memcache
memcache 的工作就是在专门的机器的内存里维护一张巨大的hash表,来存储经常被读写的一些数组与文件,从而极大的提高网站的运行效率,减轻后端数据库的读写压力。 实验环境:centos 6.6 x86_64 LAMP环境搭建完毕:php版本5.6.8、apache版本2.4.12 1、在安装memcached之前需要安装libevent支持: 1 2 3 4 5 #wgethttp://syslab.comsenz.com/downloads/linux/libevent-1.4.12-stable.tar.gz #tarzxvflibevent-1.4.12-stable.tar.gz #cdlibevent-1.4.12-stable #./configure--prefix=/usr/local/libevent #make&&makeinstall 2、服务器端 memcached 的编译安装 1 2 3 4 5 #wgethttp://syslab.comsenz.com/downloads/linux/memcached-1.4.5.tar.gz #t...
