相关文章推荐
欢乐的打火机  ·  pytorch ...·  2 月前    · 
调皮的小蝌蚪  ·  Laravel ...·  1 年前    · 
刚毅的青蛙  ·  IE8/9下,text-indent对css ...·  1 年前    · 

原因分析:

README 写到:

Allocator
Selecting a non-default memory allocator when building Redis is done by settingthe "MALLOC*environment variable. Redis is compiled and linked against libcmalloc by default, with the exception of jemalloc being the default on Linuxsystems. This default was picked because iemalloc has proven to have fewerfragmentation problems than libc malloc.
To force compiling against libc malloc, use:
% make MALLOC=libc
To compile against jemalloc on Mac OS X systems, use!% make MALLOC=jemalloc
说关于分配器allocator,如果有MALLOC 这个 环境变量,会有用这个环境变量的 去建立Redis.而目libc 并不是默认的分配器,默认的是 iemalloc,因为iemalloc 被证明 有更少的fragmentation problems 比libc.但是如果你又没有jemalloc 而只有 libc 当然 make 出错。 所以加这么一个参数

分享所感,如有侵权,请联系删除,可扫码关注微信公众号获取更多福利噢。
本文仅限于技术交流,若造成不良影响,本文创作人员概不负责,请支持正版应用,注重产权保护!!
(您的“打赏”将是我最大的写作动力!转载请注明出处.)

关注微信公众号