一、简介
Tengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性。Tengine的性能和稳定性已经在大型的网站如淘宝网,天猫商城等得到了很好的检验。它的最终目标是打造一个高效、稳定、安全、易用的Web平台。
二、安装
0.安装tengine依赖包readline
tar zxf readline-6.2.tar.gz&& cd readline-6.2 && ./configure && make && make install
1.安装tengine依赖包lua
tar zxf lua-5.1.5.tar.gz && cd lua-5.1.5 && make linux &&make install
2.安装tengine依赖包lua-nginx-module-master
unzip lua-nginx-module-master.zip
3.安装tengine依赖包ngx_cache_purge
tarzxf ngx_cache_purge-2.0.tar.gz
4.安装tengine依赖包headers-more-nginx-module
unzipheaders-more-nginx-module-0.19rc1.zip
5.安装tengine依赖包pcre
unzip pcre-8.32.zip
cd pcre-8.32 && ./configure && make && make install
6.安装tengine
tarzxvf tengine-1.5.1.tar.gz && cd tengine-1.5.1
./configure--prefix=<span style="color:#ff0000;">/app/tengine</span> --with-http_stub_status_module--with-http_ssl_module --with-http_gzip_static_module --add-module=<span style="color:#ff0000;">/app/tengine/</span>ngx_cache_purge-2.0--add-module=<span style="color:#ff0000;">/app/tengine/</span>lua-nginx-module-master --add-module=<span style="color:#ff0000;">/app/tengine/</span>headers-more-nginx-module-0.19rc1 --with-pcre=<span style="color:#ff0000;">/app/tengine/</span>pcre-8.32--with-pcre-jit --with-http_concat_module --with-http_concat_module=shared
注意:我将tengine解压在了/app/softlib/ 目录下,因此依赖包就在/app