Redis 安装碰到问题
一 make 报错
1. 出现如下错误 :
cd src && make all
make[1]: Entering directory '/xx/xx/redis-x.x.x/src'
CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory '/xx/xx/redis-x.x.x/src'
make: *** [all] Error 2
----------------------------------------------------------------------------------------------------------------------
解决方法:执行 yum -y install gcc-c++
2. 出现错误:[exception]: Executing test client: NOREPLICAS Not enough good slaves to write..
NOREPLICAS Not enough good slaves to write.
while executing.
----------------------------------------------------------------------------------------------------------------------
解决方法:修改当前目录文件tests/integration/replication-2.tcl,将after 1000改为after 10000以延长等待时间 重新测试
梦想,是一个目标,是让自己活下去的原动力,是让自己开心的原因。坚持!