redis编译报致命错误jemalloc/jemalloc.h:没有那个文件或目录

分配器allocator, 如果有MALLOC  这个 环境变量, 会有用这个环境变量的 去建立Redis。

而且libc 并不是默认的 分配器, 默认的是 jemalloc, 因为 jemalloc 被证明 有更少的 fragmentation problems 比libc。

但是如果你又没有jemalloc 而只有 libc 当然 make 出错。 所以加这么一个参数,运行如下命令:

make MALLOC=libc

猜你喜欢

转载自blog.csdn.net/qq_39244264/article/details/80270099
今日推荐