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
- PXC(Percona XtraDB Cluster)叢集安裝
- mysql cluster 7.38 叢集安裝 rpm安裝方式MySql
- Docker Redis 5.0 叢集(cluster)搭建DockerRedis
- redis cluster 4.0.9 遷槽不影響讀寫Redis
- Redis概述和單機、叢集安裝Redis
- Redis-cluster叢集搭建部署Redis
- 搭建分散式 Redis Cluster 叢集與 Redis 入門分散式Redis
- Redis cluster 叢集Redis
- Redis Cluster(叢集)Redis
- 在滴滴雲上搭建 Redis-Cluster 叢集Redis
- Redis Cluster 叢集搭建與擴容、縮容Redis
- zookeeper 叢集安裝
- kafka叢集安裝Kafka
- hbase叢集安裝
- StarRocks 叢集安裝
- cdh 叢集安裝
- redis cluster 搭建Redis
- Redis Cluster 叢集部署Redis
- 認識Redis叢集——Redis ClusterRedis
- ElasticSearch 6.6.0叢集安裝Elasticsearch
- TiDB叢集安裝TiDB
- Elasticsearch 叢集安裝部署Elasticsearch
- 【Zookeeper】zookeeper叢集安裝
- 記HBase叢集安裝
- Hadoop叢集安裝Hadoop
- 大資料叢集搭建 – 2. CDH叢集安裝 – NTP,MYSQL,nginx安裝大資料MySqlNginx
- Redis Cluster 叢集解決方案Redis
- Redis Cluster叢集模式部署Redis模式
- Hadoop叢集安裝配置Hadoop
- kubernetes叢集安裝
- elasticsearch叢集安裝(3臺)Elasticsearch
- Storm叢集安裝與部署ORM
- ZooKeeper叢集安裝和部署
- linux ZooKeeper叢集安裝Linux
- WAS叢集安裝配置過程