step 1 goto https://redis.io/download
$ wget http://download.redis.io/releases/redis-4.0.11.tar.gz
$ tar xzf redis-4.0.11.tar.gz
$ cd redis-4.0.11
$ make
没有安装gcc 先安装
yum -y install gcc
make
In file included from /usr/include/features.h:399:0,
from /usr/include/stdlib.h:24,
from adlist.c:32:
/usr/include/gnu/stubs.h:10:27: 致命错误:gnu/stubs-64.h:没有那个文件或目录
出现上个错误
yum install glibc-devel
yum install libstdc++-devel.i686
make
In file included from adlist.c:34:0:
zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录
出现这个错误
(https://blog.csdn.net/honchou56/article/details/53994708)
分配器allocator, 如果有MALLOC 这个 环境变量, 会有用这个环境变量的 去建立Redis。
而且libc 并不是默认的 分配器, 默认的是 jemalloc, 因为 jemalloc 被证明 有更少的 fragmentation problems 比libc。
但是如果你又没有jemalloc 而只有 libc 当然 make 出错。 所以加这么一个参数,运行如下命令:
make MALLOC=libc
Hint: It's a good idea to run 'make test' ;)
make test
You need tcl 8.5 or newer in order to run the Redis test
make: *** [test] Error 1
wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
tar xzf tcl8.6.1-src.tar.gz -C /usr/local/
cd /usr/local/tcl8.6.1/unix/
./configure
make
make install
返回redis目录
make install
All tests passed without errors!
Cleanup: may take some time... OK
分享到:
相关推荐
NULL 博文链接:https://jayceyxc.iteye.com/blog/2258811
centos7部署redis脚本///centos7部署redis脚本///centos7部署redis脚本///centos7部署redis脚本///centos7部署redis脚本///centos7部署redis脚本///centos7部署redis脚本///centos7部署redis脚本
最新linux下centOS7 安装redis教程!!!!!!!!!!!!!!!!
centos7 安装Redis 与 Redis解决session共享,可根据文档进行安装和使用,本人调试过,没问题
centos7 下安装redis说明 文件包括: redis下载百度网盘下载地址 安装步骤 配置service服务 配置开机启动 如文件失效可加入QQ群:282882201,在群文件下载
1、安装epel-release (建议使用国内阿里云源) #下载wget,备份当前源 yum install wget -y mv /etc/yum.repo.d/*.repo /tmp #下载阿里云源和epel源 wget -O /etc/yum.repos.d/CentOS-Base.repo ...
centos7上安装redis.docx
gcc相关依赖 ,直接 rmp -ivh --force --nodeps *.rpm scl enable devtoolset-9 bash 临时生效 修改 /etc/rc.d/rc.local ,最下面加入一行 source /opt/rh/devtoolset-9/enable
CentOS下Redis安装配置 完全转自:http://www.centoscn.com/image-text/config/2014/0712/3285.html 经测试可以安装成功。
CentOS安装Redis,单机安装Redis,redis主从模式,sentinel模式,集群模式安装详解
该文件为centos7环境下,redis4.0.10一键部署配置脚本。下载该文件,拖到服务器上,$ sh redis.sh 执行该脚本就能自动化安装。安装路径:/usr/local/redis
资源包括(Redis集群安装及配置规范,redis集群常用操作 )
centos下redis可视化界面
Centos7安装Redis安装说明
CentOS7下安装搭建Redis-4.0.6的详细过程,有具体的截图说明过程。其中还包含Redis客户端是在Win下搭建,可以连接Redis服务,实现程序测试查看。 tar.gz、exe等包已经包含
本资源可结合我的文章《详解CentOS7下编译安装Redis5.x设置开机启动及修改端口(含redis需编译安装包和redis免编译安装包)》配合使用,同时也可单独去使用。包含redis3.0.7免编译版安装包,redis5.0.7离线安装包,...
Linux centos7安装redis,并开启aof持久化模式
详细介绍了在centos操作系统下怎么安装redis 开启redis防火墙
在centos7上部署redis3.2.6版本集群的流程,及排错思路
Centos7 分布式集群部署,安装、创建服务、配置集群、启动集群、测试