Redis server.c:5103:19: server.c:5174:31: error: ‘struct redisServer’ has no member named ‘server_cp

1、安装gcc套装:

yum install cpp
yum install binutils
yum install glibc
yum install glibc-kernheaders
yum install glibc-common
yum install glibc-devel
yum install gcc
yum install make
2、升级gcc

yum -y install centos-release-scl

yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils

scl enable devtoolset-9 bash

3、设置永久升级:

echo "source /opt/rh/devtoolset-9/enable" >>/etc/profile

4、安装redis:

wget http://download.redis.io/releases/redis-6.0.3.tar.gz
tar xzf redis-6.0.3.tar.gz
cd redis-6.0.3
make

5、启动服务:

src/redis-server

Redis server.c:5103:19: server.c:5174:31: error: ‘struct redisServer’ has no member named ‘server_cp_第1张图片

6、客户端测试:

src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

Redis server.c:5103:19: server.c:5174:31: error: ‘struct redisServer’ has no member named ‘server_cp_第2张图片

你可能感兴趣的:(Redis)