- 官网下载 redis-5.0.2.tar.gz
- 解压至 /opt 并重命名为redis
- 安装gcc yum -y install gcc
- cd /opt/redis/deps
编译依赖
make hiredis jemalloc linenoise lua
编译安装lua时
Please do
make PLATFORM
where PLATFORM is one of these:
aix ansi bsd freebsd generic linux macosx mingw posix solaris
See INSTALL for complete instructions.
查看你的系统平台名称是否在支持的列表中,如果存在则继续运行make PLATFORM命令,否则按照lua的INSTALL说明我们可以选择运行make generic命令
centos7 使用make generic
若没有tcl 可直接 yum install -y tcl - cd /opt/redis
- make test
- make install
- redis.conf为配置文件 可自定义
- redis-server 回车启动
- redis-cli 进入client
- ps -ef|grep redis 可查看状态
redis5.0.2 centos7 编译安装
Redis 5.0.2 安装指南
最新推荐文章于 2023-07-25 11:36:02 发布
本文提供Redis 5.0.2版本的详细安装步骤,包括从官网下载、解压、依赖安装、编译配置、测试及启动等全过程。适合于在CentOS 7环境下进行部署。
1469

被折叠的 条评论
为什么被折叠?



