redis常见错误server.c:5191:24: error: ‘struct redisServer’ has no member named ‘masterhost’

1、安装gcc套装(如果是新系统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.redis客户端测试
redis-cli -p 6379

你可能感兴趣的:(redis)