Memcache安裝
* tar zxf memcache-2.2.5.tgz
* cd memcache-2.2.5
* phpize php
* ./configure html
* make && make install
* cd /usr/local/lnmp/php/etc/
* vim php.ini nginx
* /etc/init.d/php-fpm reload
vim
* yum install memcached -y
* /etc/init.d/memcached start
ide
* cp memcache.php /usr/local/lnmp/nginx/html
memcached
* vim memcache.php
php-fpm
* cp example.php /usr/local/lnmp/nginx/html/測試
測試
spa
* 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
測試