Nginx jmelloc

安装:
wget http://www.canonware.com/download/jemalloc/jemalloc-3.6.0.tar.bz2
tar -xvf jemalloc-3.6.0.tar.bz2
cd jemalloc-3.6.0
./configure
make && make install
echo '/usr/local/lib' > /etc/ld.so.conf.d/local.conf
ldconfig
与nginx的集成
./configure --prefix=/usr/local/nginx --with-http_gzip_static_module --with-http_realip_module --with-http_concat_module --with-http_lua_module --with-luajit-lib=/opt/luajit/lib/ --with-luajit-inc=/opt/luajit/include/luajit-2.1/ --with-jemalloc=/usr/local/src/jemalloc-3.6.0 --with-ld-opt=-Wl,-rpath,/opt/luajit/lib --user=nginx --group=nginx
//jemalloc 4.x和tengine不兼容

你可能感兴趣的:(Nginx jmelloc)