本文安装系统为centos8, redis版本为5.0.7
1、安装ruby2.5.5
执行安装ruby命令: yum install ruby
参考我的另一篇博客《centos8-安装ruby2.5.5》
2、下载redis5.0.7
redis官网: https://redis.io/download
wget http://download.redis.io/releases/redis-5.0.7.tar.gz 下载redis5.0.7
3、安装redis
先安装一些命令:
yum -y install gcc gcc-c++ libstdc++-devel //提示gcc和cc命令令未找到yum install make //安装make命令
tar -zxvf redis-5.0.7.tar.gz 解压
cd /home/joyce/soft/redis-5.0.7 进入redis目录
make MALLOC=libc make后面的参数,是为解决报错: jemalloc/jemalloc.h: No such file or directory
src/redis-server 启动server端
src/redis-cli 启动客户端验证
[[email protected] redis-5.0.7]$ src/redis-cli 127.0.0.1:6379> exit [[email protected]192 redis-5.0.7]$
end.
原文地址:https://www.cnblogs.com/zhuwenjoyce/p/12307446.html
时间: 2024-11-07 04:41:42