标签:code server sha nload hash initial redis安装部署 less dash
http://download.redis.io/releases/redis-3.2.6.tar.gz http://download.redis.io/releases/
sudo yum –y update; sudo yum -y install telnet curl nmap vim gcc gcc-c++ tcl ruby;
1 tar -xvf redis-3.2.6.tar.gz 2 cd redis-3.2.6 3 make4 make test 5 sudo make install
1 mkdir others 2 mv 00-RELEASENOTES BUGS CONTRIBUTING COPYING INSTALL Makefile MANIFESTO README.md runtest runtest-cluster runtest-sentinel others/
mkdir conf mv redis.conf conf/ mv sentinel.conf conf/ mkdir bin cd src mv redis-server redis-cli redis-sentinel ../bin
1 mkdir run 6379 26379 logs 2 touch ./run/redis_6379.pid 3 touch ./run/redis_26379.pid 4 touch ./logs/redis_6379.log 5 touch ./logs/redis_26379.log
1.第3步make 报错
missing initializer for field ‘longitude’ of ‘GeoHashArea’
可以使用
make MALLOC=libc 替换 make
2.make test 报错
*** [err]: Test replication partial resync: ok psync (diskless: yes, reconnect: 1) in tests/integration/replication-psync.tcl Expected condition ‘[s -1 sync_partial_ok] > 0‘ to be true ([s -1 sync_partial_ok] > 0) Cleanup: may take some time... OK make[1]: *** [test] Error 1
redis 安装在vmware虚拟机上会出现这个错误,在实体机以及阿里云不会出现,解决方法是vi tests/integration/replication-psync.tcl 根据报错提示将after后面的数字,从100改成 500。
一定要显示
\o/ All tests passed without errors!
这样的提示。
标签:code server sha nload hash initial redis安装部署 less dash
原文地址:http://www.cnblogs.com/kamil/p/6528357.html