一、下载redis

cd /usr/local/src

wget http://download.redis.io/releases/redis-4.0.2.tar.gz

二、解压

tar -zxvf redis-4.0.2.tar.gz

cd redis-4.0.2

三、编译安装

1、看看是否安装了gcc环境

rpm -qa|grep gcc

没有,则安装 

yum -y install gcc

make 

出现:

Hint: It's a good idea to run 'make test' ;)\
错误信息
则运行 make test
make test
出现:
You need tcl 8.5 or newer in order to run the Redis test
make: *** [test] Error 1

.1/unix/
./configure
make && make install

cd /usr/localsrc/redis-4.0.2
make test

linux安装redis-4.0.2

不报错,通过

make 安装成功


相关文章:

  • 2021-10-31
  • 2021-05-05
  • 2022-01-22
猜你喜欢
  • 2021-10-26
  • 2021-11-03
  • 2021-11-24
  • 2022-01-13
  • 2021-06-29
  • 2022-01-17
  • 2021-11-05
相关资源
相似解决方案