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以延長等待時間 重新測試
Redis 安裝碰到問題