6
6
```
7
7
bash redis.sh install
8
8
```
9
- ![ image] ( https://raw.githubusercontent. com/aqzt /kjyw/master/images/redis_cluster1.png )
10
- ![ image] ( https://raw.githubusercontent. com/aqzt /kjyw/master/images/redis_cluster2.png )
9
+ ![ image] ( https://gitee. com/aqztcom /kjyw/raw /master/images/redis_cluster1.png )
10
+ ![ image] ( https://gitee. com/aqztcom /kjyw/raw /master/images/redis_cluster2.png )
11
11
12
12
- 初始化配置
13
13
```
@@ -16,7 +16,7 @@ bash redis.sh init 30021 30026 192.168.56.101
16
16
或者
17
17
curl -s https://gitee.com/aqztcom/kjyw/raw/master/redis/redis_cluster/redis.sh | sh -s init
18
18
```
19
- ![ image] ( https://raw.githubusercontent. com/aqzt /kjyw/master/images/redis_cluster3.png )
19
+ ![ image] ( https://gitee. com/aqztcom /kjyw/raw /master/images/redis_cluster3.png )
20
20
21
21
- 启动redis进程
22
22
```
@@ -25,32 +25,32 @@ bash redis.sh start 30021 30026 192.168.56.101
25
25
或者
26
26
curl -s https://gitee.com/aqztcom/kjyw/raw/master/redis/redis_cluster/redis.sh | sh -s start
27
27
```
28
- ![ image] ( https://raw.githubusercontent. com/aqzt /kjyw/master/images/redis_cluster4.png )
28
+ ![ image] ( https://gitee. com/aqztcom /kjyw/raw /master/images/redis_cluster4.png )
29
29
30
30
- 创建redis cluster集群
31
31
```
32
32
/opt/redis/bin/redis-trib.rb create --replicas 1 192.168.56.101:30021 192.168.56.101:30022 192.168.56.101:30023 192.168.56.101:30024 192.168.56.101:30025 192.168.56.101:30026
33
33
```
34
- ![ image] ( https://raw.githubusercontent. com/aqzt /kjyw/master/images/redis_cluster5.png )
35
- ![ image] ( https://raw.githubusercontent. com/aqzt /kjyw/master/images/redis_cluster6.png )
34
+ ![ image] ( https://gitee. com/aqztcom /kjyw/raw /master/images/redis_cluster5.png )
35
+ ![ image] ( https://gitee. com/aqztcom /kjyw/raw /master/images/redis_cluster6.png )
36
36
37
37
- 检查redis cluster集群状态
38
38
```
39
39
/opt/redis/bin/redis-cli -c -h 192.168.56.101 -p 30021 -a test20200316 cluster nodes
40
40
```
41
- ![ image] ( https://raw.githubusercontent. com/aqzt /kjyw/master/images/redis_cluster7.png )
41
+ ![ image] ( https://gitee. com/aqztcom /kjyw/raw /master/images/redis_cluster7.png )
42
42
43
43
- 停止redis集群
44
44
```
45
45
bash redis.sh stop 30021 30026 192.168.56.101
46
46
```
47
- ![ image] ( https://raw.githubusercontent. com/aqzt /kjyw/master/images/redis_cluster8.png )
47
+ ![ image] ( https://gitee. com/aqztcom /kjyw/raw /master/images/redis_cluster8.png )
48
48
49
49
- 卸载redis集群配置
50
50
```
51
51
bash redis.sh uninstall
52
52
```
53
- ![ image] ( https://raw.githubusercontent. com/aqzt /kjyw/master/images/redis_cluster9.png )
53
+ ![ image] ( https://gitee. com/aqztcom /kjyw/raw /master/images/redis_cluster9.png )
54
54
55
55
56
56
@@ -62,7 +62,7 @@ bash redis.sh uninstall
62
62
63
63
## 微信关注
64
64
65
- ![ image] ( https://raw.githubusercontent. com/aqzt /kjyw/master/images/aqzt.jpg )
65
+ ![ image] ( https://gitee. com/aqztcom /kjyw/raw /master/images/aqzt.jpg )
66
66
67
67
- 运维就是踩坑,踩坑的最高境界就是:踩遍所有的坑,让别人无坑可踩!
68
68
- 做事的宗旨是:一条命令的事,一个脚本的事!
0 commit comments