redis--刪除多余的slave節點


redis--刪除多余的slave節點 

1.#刪除多余的slave從節點
[root@redis-node1 ~]#redis-cli -a 123456 --cluster del-node 10.0.0.18:6379 f9adcfb8f5a037b257af35fa548a26ffbadc852d Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe. >>> Removing node f9adcfb8f5a037b257af35fa548a26ffbadc852d from cluster 10.0.0.18:6379 >>> Sending CLUSTER FORGET messages to the cluster... >>> SHUTDOWN the node

2.#刪除集群文件

[root@redis-node4 ~]#rm -f /var/lib/redis/nodes-6379.conf

 

3.驗證刪除信息

[root@redis-node1 ~]#redis-cli -a 123456 --cluster check 10.0.0.8:6379 

[root@redis-node1 ~]#redis-cli -a 123456 --cluster info 10.0.0.8:6379 

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM