系統(tǒng)環(huán)境:CentOS 6.5 64位
安裝方式:編譯安裝
防火墻:開啟
Redis版本:Redis 3.0.2
一、環(huán)境準(zhǔn)備
1、安裝 gcc gcc-c++
[root@iZ94ebgv853Z ~]# yum install gcc gcc-c++ -y
2、下載redis-3.0.2.tar.gz
[root@iZ94ebgv853Z ~]# wget http://download.redis.io/releases/redis-3.0.2.tar.gz
二、安裝Redis
[root@iZ94ebgv853Z ~]# tar xf redis-3.0.2.tar.gz #解壓[root@iZ94ebgv853Z ~]# cd redis-3.0.2[root@iZ94ebgv853Z redis-3.0.2]# make[root@iZ94ebgv853Z redis-3.0.2]# make test
報(bào)錯(cuò)如下:
cd src&& make test
make[1]:Entering directory `/root/redis-3.0.2/src'
You needtcl 8.5 or newer in order to run the Redis test
make[1]:*** [test] Error 1
make[1]:Leaving directory `/root/redis-3.0.2/src'
make: *** [test] Error 2
原因:需要安裝tcl