在 CentOS 7 里安装 redis-4.0.9|云分享 - 开发者论坛

129 阅读1分钟
原文链接: click.aliyun.com
环境:阿里云 CentOS 7.5 64位 
 
过程: 
 
1.yum update # 更新 
 
 
2.wget download.redis.io/releases/re… # 下载redis当前最新稳定版4.0.9 
 
 
 
3.tar xvzf redis-4.0.9.tar.gz # 解压缩安装包 
 
 
 
4.make distclean # 准备make 
 
 
 
5.make 
 
 
6.make test # 编译测试 
 
 
 
7.yum install tcl # 如果遇到提示要求tcl,请先安装 
 
 
 
8.编译测试通过  
 
 
 
 
9.make install # 安装 
 
 
10.cd utils && ./install_server.sh # 转到工具目录,执行安装服务脚本,本例端口,路径等设置按默认值  
 
 
 
11.systemctl start redis_6379 # 启动redis服务 
 
 
12.systemctl status redis_6379 # 查看redis服务状态 
 
 
 
13.运行 redis-cli 测试,正常 
 
 
参考: 
  • https://redis.io/download
  • https://www.hugeserver.com/kb/install-redis-4-centos-ubuntu-debian
[ 此帖被dongshan8在2018-06-11 09:44重新编辑 ]