安装前做好备份:yum -y install jemalloc pcre* openssl*
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
#cd /usr/local/
#wget http://tengine.taobao.org/download/tengine-2.1.2.tar.gz
#tar zxvf tengine-2.1.2.tar.gz
#wget https://codeload.github.com/yunsuo-open/nginx-plugin/zip/master -O nginx-plugin-master.zip
#unzip nginx-plugin-master.zip
#nginx -V
--with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_upstream_check_module
#cd tengine-2.1.2
#./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_upstream_check_module --add-module=/usr/local/nginx-plugin-master
# make
rm -rf /usr/local/nginx/sbin/nginx
cp objs/nginx /usr/local/nginx/sbin/nginx
service nginx restart
cd /usr/local/yunsuo_agent/nginx/
./configure_compile_nginx /usr/local/nginx