安装过程

1. 下载并解压


cd /root/software
wget http://download.redis.io/releases/redis-3.2.4.tar.gz
tar -zxvf redis-3.2.4.tar.gz 

2. 编译安装

cd redis-3.2.4
make && make install

这一步中出现 

centos7 安装redis 出现cc: command not found错误解决

错误

经过百度,是服务器新安装没有安装gcc环境,需要安装gcc环境,使用yum安装
yum install gcc

检查gcc环境是否安装好
rpm -qa|grep gcc

 
centos7 安装redis 出现cc: command not found错误解决
然后删掉redis-3.2.4目录,在继续操作,成功。
rm -rf redis-4.0.2

 

3. 将 redis-trib.rb 复制到 /usr/local/bin 目录下

cd src
cp redis-trib.rb /usr/local/bin/  

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2021-09-27
  • 2021-08-20
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
相关资源
相似解决方案