File tree 1 file changed +15
-5
lines changed
1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 13
13
` ` ` lua
14
14
00-RELEASENOTES BUGS CONTRIBUTING COPYING deps INSTALL Makefile MANIFESTO README.md redis.conf runtest
15
15
runtest-cluster runtest-sentinel sentinel.conf src tests utils
16
- ` ` `
16
+ ` ` `
17
17
+ 编译完成之后,可以看到解压文件redis- 3.0 .7 中会有对应的src、conf等文件
18
18
+ 这和windows下安装解压的文件一样,大部分安装包都会有对应的类文件、配置文件和一些命令文件。
19
19
+ 进入src文件夹,执行make install进行Redis安装
29
29
INSTALL install
30
30
INSTALL install
31
31
INSTALL install
32
- ` ` `
32
+ ` ` `
33
33
#### 二、部署文件结构
34
34
+ 首先为了方便管理,将Redis文件中的conf配置文件和常用命令移动到统一文件中
35
35
+ 创建以下文件目录
90
90
91
91
rename-command DEBUG "tinywangithubDEBUG"
92
92
` ` `
93
- + 启动redis服务,并指定启动服务配置文件,检测运行端口,为了安全,请不要使用root用户去启动
93
+ 启动redis服务,并指定启动服务配置文件,检测运行端口,为了安全,请不要使用root用户去启动
94
94
` ` ` java
95
95
$ sudo chown -R www:www /usr/local/redis/ //赋予指定该用户组,而非root账号
96
96
$ /usr/local/redis/bin/redis-server /usr/local/redis/etc/redis63700.conf
194
194
www 1730 0.0 0.1 14224 1024 pts/0 S+ 13:08 0:00 grep --color=auto redis
195
195
196
196
` ` `
197
-
198
- #### 五、Redis数据迁移
197
+ #### 五、Redis关闭
198
+ * 命令方式关闭
199
+ ` ` `
200
+ $ redis-cli -h 127.0.0.1 -p 6379
201
+ 127.0.0.1:6379> shutdown
202
+ ` ` `
203
+ * 进程号杀掉redis
204
+ ` ` `
205
+ ps -ef | grep redis
206
+ kill -9 XXX
207
+ ` ` `
208
+ #### 六、Redis数据迁移
199
209
+ 查找RDB 文件:
200
210
201
211
` ` ` sudo find / -name dump.rdb` ` `
You can’t perform that action at this time.
0 commit comments