今天突发奇想玩了玩redis未授权,安装redis的过程中make报错,具体报错内容如下
zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or directory
通过查询报错原因,得到如下解决方法,主要参考该网站:https://stackoverflow.com/questions/47088171/error-jemalloc-jemalloc-h-no-such-file-or-directory-when-making-redis
需要先运行“make distclean”,它设置删除所有早期的编译文件,然后运行“make”,这样就得到了redis服务器程序的新编译。
执行后成功编译redis