卸载或重新安装Redis集群
生活随笔
收集整理的這篇文章主要介紹了
卸载或重新安装Redis集群
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
卸載或重新安裝Redis集群
1.如果需要修改端口號,則需要將原來的Redis各節(jié)點(diǎn)的服務(wù)器卸載,并重新安裝,
卸載服務(wù)命令如下:
D:/Redis/redis-server.exe --service-uninstall --service-name Redis6382 D:/Redis/redis-server.exe --service-uninstall --service-name Redis6381 D:/Redis/redis-server.exe --service-uninstall --service-name Redis6380
注意:如果只是想重新安裝集群,可以跳過第一步;
2.停止當(dāng)前Redis集群各節(jié)點(diǎn)的服務(wù),然后刪除對應(yīng)的數(shù)據(jù)文件?*.aof 和配置文件 *.conf
? ?如圖中的 appendonly.6380.aof、appendonly.6381.aof、appendonly.6382.aof 和 nodes.6380.conf、nodes.6381.conf、nodes.6382.conf
3.重啟所有Redis節(jié)點(diǎn)服務(wù),然后再使用以下命令進(jìn)行創(chuàng)建
redis-trib.rb create --replicas 0 127.0.0.1:6380 127.0.0.1:6381 127.0.0.1:6382如何搭建Redis集群,請查看下面的鏈接
?Windows下搭建Redis集群
總結(jié)
以上是生活随笔為你收集整理的卸载或重新安装Redis集群的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TCP/IP/ICMP 学习实践
- 下一篇: SpringMvc自动代理