Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
prm
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shi wenxuan
prm
Commits
d4c74075
Commit
d4c74075
authored
Feb 28, 2025
by
ZhangXiaoyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis
parent
a7508d55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
README.md
+37
-0
No files found.
README.md
0 → 100644
View file @
d4c74075
## 一些安装步骤
```
# 创建一个目录用于存放源码
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment