Redis 下载安装步骤:
- 下载 redis 源码:
[[email protected] ~]$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
- 解压文件:
[[email protected] ~]$ tar xzf redis-2.8.3.tar.gz
- 编译源码:
[[email protected] ~]$ cd redis-2.8.3 [[email protected] ~]$ make
- 编译完成后,进入 src 目录:
[[email protected] ~]$ cd src
- 启动 redis 服务:
[[email protected] ~]$ ./redis-server &
- 验证 redis 服务是否成功启动:
[[email protected] ~]$ ./redis-cli ping PONG
- 启动 redis 客户端:
[[email protected] ~]$ ./redis-cli 127.0.0.1:6379>
时间: 2024-10-06 05:31:18