yum install centos-release-SCL centos-release-scl scl-utils-build scl-utils -y
yum install devtoolset-11-gcc devtoolset-11-make devtoolset-11-gcc-c++ llvm-toolset-7.0 -y
安装rust
curl --proto '=https' --tlsv1.2 -sSf https: // sh.rustup.rs | sh
rustup toolchain list
source /opt/rh/devtoolset-11/enable
source /opt/rh/llvm-toolset-7/enable
tar -zxvf redis-8.0.0.tar.gz
cd redis-8.0.0
make PREFIX=/usr/local/redis8 all install BUILD_WITH_MODULES=yes #安装模块
mkdir -p /usr/local/redis8/etc/
cp redis* /usr/local/redis8/etc/
root@server232 redis8]#/usr/local/redis8/bin/redis-server -v
Redis server v=8.0.0 sha=00000000:1 malloc=jemalloc-5.3.0 bits=64 build=d80870d8d0c7e34
#运行
/usr/local/redis8/bin/redis-server /usr/local/redis8/etc/redis.conf