linux下安装jemalloc

1.下载解压jemalloc

1.下载地址:https://github.com/jemalloc/jemalloc/releases 我选择最新版本5.2.0 

2.进入src目录 cd /usr/local/src 执行wget https://github.com/jemalloc/jemalloc/releases/download/5.2.0/jemalloc-5.2.0.tar.bz2

解压安装包 tar -jxvf jemalloc-5.2.0.tar.bz2

如果解压报错 执行yum -y install bzip2以支持bzip2

2.安装jemalloc

1.进入根目录 cd /usr/local/src/jemalloc-5.2.0

2.安装依赖 yum -y install autogen autoconf

3.编译安装 

./autogen.sh

make -j8

make install

ldconfig

默认安装目录为

prefix: /usr/local
bin: /usr/local/bin
data: /usr/local/share
include: /usr/local/include
lib: /usr/local/lib
man: /usr/local/share/man

使用默认安装目录,请自行修改

linux下安装jemalloc_第1张图片

 

 

你可能感兴趣的:(jemalloc)