咨询:CentOS 8下无需编译安装jemalloc的简便方法
在CentOS 8中无需编译安装jemalloc的简便方法
CentOS 8 里 jemalloc 包不在默认基础仓库中,但可以通过启用官方 PowerTools 仓库直接安装,全程无需编译,步骤如下:
先确保安装
dnf-plugins-core(它提供仓库管理工具,若已安装可跳过):dnf install dnf-plugins-core -y启用 PowerTools 仓库:
dnf config-manager --set-enabled powertools直接安装 jemalloc 及其开发包(若不需要开发头文件,可只装
jemalloc):dnf install jemalloc jemalloc-devel -y验证安装结果:
jemalloc-config --version运行后输出 jemalloc 的版本号,即说明安装成功。
内容的提问来源于stack exchange,提问作者AmsterdamLuis
相关产品推荐
相关产品推荐

