Memcache安装
* tar zxf memcache-2.2.5.tgz
* cd memcache-2.2.5
* phpize
* ./configure
* make && make install
* cd /usr/local/lnmp/php/etc/
* vim php.ini
* /etc/init.d/php-fpm reload
* yum install memcached -y
* /etc/init.d/memcached start
* cp memcache.php /usr/local/lnmp/nginx/html
* vim memcache.php
* cp example.php /usr/local/lnmp/nginx/html/
测试
* tar zxf openresty-1.11.2.3.tar.gz
* cd /openresty-1.11.2.3
* ./configure
* gmake && gmake install
* vim /usr/local/openresty/nginx/conf/nginx.conf
测试