准备了一个新的CentOS6.5的环境用于搭建redis的集群,下面记录搭建过程中遇到的一些问题,以供有相同需求的网友参考:
1、下载文件wget https://github.com/antirez/redis/archive/3.0.0-beta8.tar.gz
2、解压包tar xzvf 3.0.0-beta8
3、cd redis-3.0.0-beta8/ 并执行 make,当make test时报错:
You need tcl 8.5 or newer in order to run the Redis test
4、sudo yum install -y tcl
报错:
zl is not in the sudoers file. This incident will be reported.
5、需要使用root权限,把用户加入到sudoers中,
# chmod u+w /etc/sudoers
然后加入下面一行:
xxx ALL=(ALL) ALL ---其中xxx是你的用户名
6、执行sudo yum install -y tcl
7、再次执行make test,正常情况下应该成功了
-----原本抓了好几张图,贴在了博客中,结果优快云直接把图丢了,让我只留下了最后一张图