Linux/Centos 安装Redis遇到问题及解决

Reids :redis-3.2.5.tar

1、进入redis-3.2.5.tar所在目录,例如:/var/user/redis

#cd /var/user/redis

#tar -xvf redis-3.2.5.tar

#cd redis-3.2.5

2、redis配置文件

#vi redis.conf 

3、安装redis

#make

1、错误

/bin/sh: cc: 未找到命令


解决办法:

安装命令:yum -y install gcc automake autoconf lib tool make

2、错误

致命错误:jemalloc/jemalloc.h:没有那个文件或目录


解决办法:

执行命令 make MALLOC=libc

3、错误

执行安装命令

make install

提示:

[plain]  view plain  copy
  1. cd src && make install  
  2. make[1]: Entering directory `/opt/redis-2.8.13/src'  
  3.   
  4. Hint: To run 'make test' is a good idea ;)  
  5.   
  6.     INSTALL install  
  7.     INSTALL install  
  8.     INSTALL install  
  9.     INSTALL install  
  10.     INSTALL install  
  11. make[1]: Leaving directory `/opt/redis-2.8.13/src'  
 根据提示,执行: cd src && make install
提示:

[plain]  view plain  copy
  1. Hint: To run 'make test' is a good idea ;)  
  2.   
  3.     INSTALL install  
  4.     INSTALL install  
  5.     INSTALL install  
  6.     INSTALL install  
  7.     INSTALL instal  
按照提示执行:make test

提示:

[plain]  view plain  copy
  1. You need tcl 8.5 or newer in order to run the Redis test  
  2. make: *** [test] Error 1  

执行:yum install tcl 命令安装


直接到src目录下执行 ./redis-server 就可以




  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值