开发者社区> 问答> 正文

在 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 && cd redis-4.0.9 # 解压缩安装包



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:42:20 11507 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Redis在唯品会的应用实践——架构演进与功能定制 立即下载
微博的Redis定制之路 立即下载
云数据库Redis版的开源之路 立即下载