且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

nginx添加jemalloc支持

更新时间:2022-10-04 10:57:47

下载包

tengine-2.1.2.tar.gz
pcre-8.37.tar.gz

jemalloc-4.2.1.tar.bz2

解压包

tar -zxf tengine-2.1.2.tar.gz

tar -zxf pcre-8.37.tar.gz

tar jxf jemalloc-4.2.1.tar.bz2

 编译安装

cd tengine-2.1.2/

./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/src/pcre-8.37 --with-http_stub_status_module --with-http_upstream_check_module --with-http_ssl_module --with-jemalloc=/usr/local/src/jemalloc-4.2.1

make

make install

 

参考资料:

http://tengine.taobao.org/documentation_cn.html

http://nginx.org/en/docs/

本文转自银狐博客51CTO博客,原文链接http://blog.51cto.com/foxhound/1940970如需转载请自行联系原作者

战狐