server { listen 80; server_name ssx8.com; gzip off; location / { # proxy_pass https://www.ssx8.com; rewrite ^/(.*)$ https://www.ssx8.com/$1 permanent; } }…

linux下配置使用memcache功能,比win下稍微复杂一点,主要包括:安装libevent函数库、安装memcached、配置php扩展。 一、安装libevent函数库 libevent各版本地址:http://libevent.org/old-releases.html 在此我安装当前最稳定版本:libevent-2.0.21 1.下载:# wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz 2.解压: #tar -zxvf libevent-2.0.21-stable.tar.gz 3 配置及编译安装: #cd ibevent-2.0.21-stable #./configure –prefix=/usr/local/libevent-2.0.21-stable #make #make install…