redis 单节点安装

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

1.下载解压

2.make编译

3.提示没有安装安装gcc,安装gcc

yum install gcc

4.make 提示error: jemalloc/jemalloc.h: No such file or directory

[root@computer7 redis-5.0.3]# make
cd src && make all
make[1]: Entering directory `/data/apps/redis-5.0.3/src'
    CC Makefile.dep
make[1]: Leaving directory `/data/apps/redis-5.0.3/src'
make[1]: Entering directory `/data/apps/redis-5.0.3/src'
    CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
 #include <jemalloc/jemalloc.h>
                               ^
compilation terminated.
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/data/apps/redis-5.0.3/src'
make: *** [all] Error 2
[root@computer7 redis-5.0.3]# cd src/
[root@computer7 src]# make
    CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
 #include <jemalloc/jemalloc.h>
                               ^
compilation terminated.
make: *** [adlist.o] Error 1
[root@computer7 src]# make all
    CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
 #include <jemalloc/jemalloc.h>
                               ^
compilation terminated.
make: *** [adlist.o] Error 1
解决:执行  make MALLOC=libc  

5. make test 提示 You need tcl 8.5 or newer in order to run the Redis test

解决:

wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz 
tar xzvf tcl8.6.1-src.tar.gz
./configure 
make 
make install 

6. 再次测试redis

[root@computer7 src]# pwd
cd redis-5.0.3/src

make test

Executing test client: couldn't open socket: connection refused.  这个错不管,执行下一步。

image

7. make install安装

image

8. 启动redis

修改redis.conf 中绑定ip为本机ip如:bind 192.168.1.71  默认为bind 127.0.0.1 不能远程访问

image

 

9.安装redis客户端

https://github.com/uglide/RedisDesktopManager/releases/download/0.9.3/redis-desktop-manager-0.9.3.817.exe

image

 

 

 

 




 

转载于:https://www.cnblogs.com/cs294639693/p/10198231.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值