centos8部署redis5.0.7集群
本文安装系统为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 启动客户端验证
[ redis-5.0.7]$ src/redis-cli 127.0.0.1:6379> exit [192 redis-5.0.7]$
end.
相关推荐
王道革 2020-11-25
wangdonghello 2020-11-03
Langeldep 2020-11-16
chenhualong0 2020-11-16
聚合室 2020-11-16
koushr 2020-11-12
MRFENGG 2020-11-11
guoyanga 2020-11-10
fackyou00 2020-11-10
Orangesss 2020-11-03
dongCSDN 2020-10-31
rainandtear 2020-10-30
Quietboy 2020-10-30
liuyulong 2020-10-29
fansili 2020-10-29
温攀峰 2020-10-23
jackbon 2020-10-19
kaixinfelix 2020-10-04