redis Sentinel, clusters

 cd /opt/s18msredis/
 1016  vim redis-6379.conf 
 1017  cat redis-6380.conf
 1018  redis-server redis-6379.conf 
 1019  redis-server redis-6380.conf 
 1020  redis-server redis-6381.conf 
 1021  ps -ef|grep redis
 1022  redis-cli -p 6379
 1023  redis-cli -p 6380
 1024  redis-cli -p 6381 info replication
 1025  redis-cli -p 6381
 1026  redis-cli -p 6379
 1027  redis-cli -p 6381
 1028  ps -ef|grep redis
 1029  kill -9 18319
 1030  ps -ef|grep redis
 1031  redis-cli -p 6381
 1032  redis-cli -p 6380
 1033  redis-cli -p 6381
 1034  ps -ef|grep redis
 1035  pkill redis-server
 1036  rm -rf /data/*
 1037  mkdir -p /data/{6379,6380,6381}
 1038  redis-server redis-6379.conf 
 1039  redis-server redis-6380.conf 
 1040  redis-server redis-6381.conf 
 1041  vim redis-26379.conf
 1042  mkdir -p /var/redis/data/
 1043  sed "s/26379/26380/g" redis-26379.conf > redis-26380.conf
 1044  sed "s/26379/26381/g" redis-26379.conf > redis-26381.conf
 1045  ll
 1046 return to power-26379 .conf
  1047, the Redi-26380 .conf
  1048 the Redi-26381 .conf
  1049 Redi-Sentinel Redi-26380 .conf 
  1050 ps -ef | You're going grep
  1051 Redi-Sentinel Redi-26381 .conf 
  1052 Redi-Sentinel Redi-26380 .conf 
  1053 Redi-Sentinel Redi-26379 .conf 
  1054 ps -ef | You're going grep
  1055 Redi-di-p 6379 info replication
  1056 kill -9 19162 
 1057 Redi-di Redi-6380 .conf info replication
  1058 Redi-di-p 6380 info replication
  1059 Redi-di-p 6381 info replication
  1060 the Redi-6381.conf 
 1061  vim redis-6380.conf 
 1062  redis-server redis-6379.conf
 1063  redis-cli -p 6379
 1064  vim redis-6379.conf 
 1065  ps -ef|grep redis
 1066  pkill redis-server
 1067  ps -ef|grep redis
 1068  pkill redis
 1069  ps -ef|grep redis
 1070  cd ..
 1071  mkdir s18cluster
 1072  cd s18cluster/
 1073  touch redis-7000.conf
 1074  vim redis-7000.conf 
 1075  sed "s/7000/7001/g"Redi-7000.conf> 7001 Redi- .conf
 1076, but the " S / 7000/7002 / G " Redi-7000.conf> Redi-7002 .conf
  1077, but the " S / 7000/7003 / G " Redi-7000.conf> redis- 7003 .conf
  1078, but the " s / 7000/7004 / G " Redi-7000.conf> litters 7004 .conf
  1079, but the " s / 7000/7005 / G " Redi-7000.conf> Redi-7005 .conf
  1080 return to power -7005 .conf 
  1081 mkdir -p / opt / return / data
  1082 Redi-server Redi-7000 .conf 
  1083 Redi-server Redi-7001 .conf 
  1084 Redi-server Redi-7002 . 
 conf 
 1085  redis-server redis-7003.conf 
 1086  redis-server redis-7004.conf 
 1087  redis-server redis-7005.conf 
 1088  ps -ef|grep redis
 1089  redis-cli -p 7000
 1090  wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz
 1091  ls
 1092  tar -xvf ruby-2.3.1.tar.gz 
 1093  ls
 1094  cd ruby-2.3.1/
 1095  ls
 1096  ./configure --prefix=/opt/ruby/
 1097  make && make install
 1098  ls
 1099  cd /opt
 1100  ls
 1101  cd ruby/
 1102  ls
 1103  cd bin
 1104  ls
 1105  ruby -v
 1106  pwd
 1107  vim /etc/profile
 1108  ruby -v
 1109  source /etc/profile
 1110  ruby -v
 1111  cd /opt/s18cluster/
 1112  wget http://rubygems.org/downloads/redis-3.3.0.gem
 1113  ls
 1114  gem install -l redis-3.3.0.gem 
 1115  find / name redis-trib.rb 
 1116  find /opt -name redis-trib.rb  
 1118  /opt/redis-4.0.10/src/redis-trib.rb create  --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005
 1119 repeat-cli -p 7000 - c
  1120 repeat-cli -p 7001 -c

 

Guess you like

Origin www.cnblogs.com/xuqidong/p/11204550.html