Commit d4c74075 by ZhangXiaoyun

redis

parent a7508d55
## 一些安装步骤
```
# 创建一个目录用于存放源码
mkdir -p ~/redis_install
cd ~/redis_install
# 下载最新的稳定版(以 Redis 7.0.0 为例)
wget http://download.redis.io/releases/redis-7.0.0.tar.gz
# 解压缩
tar xzf redis-7.0.0.tar.gz
cd redis-7.0.0
# 编译 Redis
make
# 可选:运行测试以确保编译正确
make test
# 安装到用户目录下(例如 $HOME/.local)
make PREFIX=$HOME/.local install
# 配置环境变量
vim ~/.bashrc # 加入一行 export PATH=$HOME/.local/bin:$PATH
source ~/.bashrc
# 复制默认配置文件到用户目录
mkdir -p ~/redis_conf
cp ~/redis_install/redis-7.0.0/redis.conf ~/redis_conf/
# 编辑配置文件
vim ~/redis_conf/redis.conf
# 加入一行 save "" 并且 appendonly no
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment