在安装Jemalloc之前首选安装解压工具,Jemalloc源来自Github一般服务器很少安装bzip2解压
bzip2安装命令
yum -y install bzip2
CnetOS完整安装Jemalloc步骤
#wget https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2 #tar -jxvf jemalloc-5.2.1.tar.bz2 #cd jemalloc-5.2.1 #yum -y install autogen autoconf #./autogen.sh #make -j2 #make install #ldconfig #cd ../ #rm -rf jemalloc-5.2.1 jemalloc-5.2.1.tar.bz2
Ubuntu完整安装Jemalloc步骤
#wget https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2 #tar -jxvf jemalloc-5.2.1.tar.bz2 #cd jemalloc-5.2.1 #sudo apt-get install autogen autoconf #./autogen.sh #make -j2 #sudo make install #sudo ldconfig #cd ../ #rm -rf jemalloc-5.0.1 jemalloc-5.2.1.tar.bz2
CnetOS与Ubuntu安装主要是在命令上的区别,其它都一样。
获取最新的Jemalloc版本
https://github.com/jemalloc/jemalloc/releases