
# make MALLOC=libc && make install PREFIX=/usr/local/redis/6.0.7

先检查gcc的版本是否低于5,如果是请先升级,可以使用以下命令:
# yum install -y centos-release-scl
# yum install -y devtoolset-7-gcc*
# scl enable devtoolset-7 bash
# gcc --version
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
说明:或者降低redis版本
1492

被折叠的 条评论
为什么被折叠?



