wget http://download.redis.io/releases/redis-6.0.6.tar.gz?_ga=2.104030464.1049731693.1595900008-1330786281.1595900008 tar -zxvf redis-6.0.6.tar.gz?_ga=2.104030464.1049731693.1595900008-1330786281.1595900008 cd redis-6.0.6 make PREFIX=/usr/local/redis install
报错
^
server.c:5212:31: error: ‘struct redisServer’ has no member named ‘server_cpulist’
redisSetCpuAffinity(server.server_cpulist);
^
server.c: In function ‘hasActiveChildProcess’:
server.c:1480:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
server.c: In function ‘allPersistenceDisabled’:
server.c:1486:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
server.c: In function ‘writeCommandsDeniedByDiskError’:
server.c:3826:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
server.c: In function ‘iAmMaster’:
server.c:5000:1: warning: control reaches end of non-void function [-Wreturn-type]
}
升级gcc https://www.cnblogs.com/knowledgemine/p/13036752.html
redis 使用 https://www.cnblogs.com/zqq1234/p/12930918.html