浏览器搜索redis中文网站,选择自己想要的版本。

tar -zxvf redis***  解压缩

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

sudo mv 解压后的文件 /usr/local/redis

cd /usr/local/redis

sudo make

sudo make test  (这一步出错的话)

You need tcl 8.5 or newer in order to run the Redis test
Makefile:262: recipe for target 'test' failed
make: *** [test] Error 1

安装8.5及以上的tcl

# wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
# tar xzvf tcl8.6.1-src.tar.gz  -C /usr/local/
# cd  /usr/local/tcl8.6.1/unix/
# ./configure
# make
# make isntall

重新sudo make test

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄