在 CentOS 7 里安装 redis-4.0.9

原文链接:点击打开链接

环境阿里 CentOS 7.5 64位 
 
过程: 
 
1.yum update # 更新 
 
 
2.wget http://download.redis.io/releases/redis-4.0.9.tar.gz # 下载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

猜你喜欢

转载自blog.csdn.net/qq_42154484/article/details/80653446