安装redis
安装步骤如下所示:
$ wget http://download.redis.io/releases/redis-2.8.17.tar.gz
$ tar xzf redis-2.8.17.tar.gz
$ cd redis-2.8.17
$ make
注意:若make 报错 ,出现如下问题:
问题一
/bin/sh: cc: 未找到命令 make[1]: *** [adlist.o] 错误 127
解决方案:yum -y install gcc automake autoconf libtool make
问题二
zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录
解决方案:make MALLOC=libc
问题三
Make test 时,若报You need tcl 8.5 or newer in order to run the Redis test
则需要安装tcl 8.5以上的版本
1. wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz //直接下载
2. sudo tar xzvf tcl8.6.1-src.tar.gz -C /usr/local/
3. cd /usr/local/tcl8.6.1/unix/
4. sudo ./configure
5. sudo make
6. sudo make install
上述问题解决后,重新执行下列步骤完成安装。
2、make PREFIX=/home/mpay/redis install
$ cd