Memcache安装
   * tar zxf memcache-2.2.5.tgz  
   * cd memcache-2.2.5
   * phpize 

memcache + openresty_Linux 

   * ./configure  

memcache + openresty_Linux_02

   * make  && make install
   * cd  /usr/local/lnmp/php/etc/
   * vim php.ini 

memcache + openresty_memcache_03

   * /etc/init.d/php-fpm reload

memcache + openresty_memcache_04

   * yum install memcached -y
   * /etc/init.d/memcached start

memcache + openresty_Linux_05

   * cp memcache.php /usr/local/lnmp/nginx/html

   * vim memcache.php

memcache + openresty_Linux_06

   * cp example.php /usr/local/lnmp/nginx/html/

memcache + openresty_Linux_07

   测试

memcache + openresty_memcache_08

memcache + openresty_memcache_09


    2.openresty

    * tar zxf openresty-1.11.2.3.tar.gz

    * cd  /openresty-1.11.2.3

    *  ./configure

    * gmake && gmake install

memcache + openresty_memcache_10

    * vim /usr/local/openresty/nginx/conf/nginx.conf


memcache + openresty_memcache_11

memcache + openresty_memcache_12

memcache + openresty_Linux_13

    

   测试

memcache + openresty_memcache_14