redis cluster 4.0.9 叢集安裝搭建
Redis Cluster 4.0.9叢集搭建步驟:
yum install -y gcc g++ gcc-c++ make openssl
cd redis-4.0.9
make
mkdir -p /usr/local/redis-4.0.9
make install PREFIX=/usr/local/redis-4.0.9
mkdir -p /usr/local/ruby-2.4.0
cd ruby-2.4.0
./configure -prefix=/usr/local/ruby-2.4.0
make && make install
yum install rubygems
gem install -l redis-3.3.3.gem
gem list -- check redis gem
vi /etc/profile
source /etc/profile
export PATH=/usr/local/ruby-2.4.0/bin/:$PATH
配置password
vi /usr/local/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/redis-3.3.3/lib/redis/client.rb
在每臺伺服器啟動redis:
/usr/local/redis-4.0.9/bin/redis-server /u01/redis/2002/conf/redis_2002.conf
/usr/local/redis-4.0.9/bin/redis-server /u01/redis/3003/conf/redis_3003.conf
redis-trib.rb create --replicas 1 192.168.11.11:2002 192.168.11.11:3003 192.168.11.12:2002 192.168.11.12:3003 192.168.11.13:2002 192.168.11.13:3003
檢視叢集關係
redis-cli -h 192.168.11.11 -p 2002 -c -a "yoon" cluster nodes
檢視redis-cluster叢集關係
redis-cli -h 192.168.11.11 -p 2002 -c cluster slots | xargs -n8 | awk '{print $3":"$4"->"$6":"$7}' | sort -nk2 -t ':' | uniq
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28939273/viewspace-2666817/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- redis-cluster叢集安裝(基於redis-3.2.10)Redis
- 【redis叢集安裝】Redis
- 搭建redis cluster叢集Redis
- Docker Redis 5.0 叢集(cluster)搭建DockerRedis
- redis cluster 4.0.9 遷槽不影響讀寫Redis
- Redis-cluster叢集搭建部署Redis
- 搭建分散式 Redis Cluster 叢集與 Redis 入門分散式Redis
- Redis cluster 叢集Redis
- Redis Cluster(叢集)Redis
- TiDB叢集安裝TiDB
- StarRocks 叢集安裝
- Kubernetes 叢集安裝
- cdh 叢集安裝
- kubernetes叢集安裝
- 在滴滴雲上搭建 Redis-Cluster 叢集Redis
- Redis Cluster 叢集搭建與擴容、縮容Redis
- redis cluster 搭建Redis
- PXC(Percona-XtraDB-Cluster)5.7版本叢集安裝和使用初探
- Redis Cluster 叢集部署Redis
- ElasticSearch 6.6.0叢集安裝Elasticsearch
- Hadoop叢集安裝配置Hadoop
- Elasticsearch 叢集安裝部署Elasticsearch
- 認識Redis叢集——Redis ClusterRedis
- 大資料叢集搭建 – 2. CDH叢集安裝 – NTP,MYSQL,nginx安裝大資料MySqlNginx
- 【Redis叢集實戰】Redis Cluster 部署Redis
- Redis Cluster 叢集解決方案Redis
- Redis Cluster叢集模式部署Redis模式
- ZooKeeper叢集安裝和部署
- elasticsearch叢集安裝(3臺)Elasticsearch
- Flink(四)叢集安裝(二)
- 大資料叢集搭建 – 1. CDH叢集安裝 – 環境準備大資料
- Redis 超詳細的手動搭建Cluster叢集步驟Redis
- redis偽叢集配置Cluster叢集模式Redis模式
- 【Redis】Redis Cluster-叢集故障轉移Redis
- 玩轉Redis叢集之ClusterRedis
- Redis Cluster叢集模式部署XRedis模式
- Kafka叢集安裝Version2.10Kafka
- Zookeeper介紹與叢集安裝