您的位置:首页 > 运维架构 > Nginx

nginx添加jemalloc支持

2017-06-22 15:41 435 查看

下载包

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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息