ubuntu 安装 redis集群
计划部署三个虚拟机 三个master节点 三个slave节点: IP:192.168.26.133 port:7133(master) port: 8133(slave) IP: 192.168.26.134 port: 7134(master) port: 8134(slave) IP: 192.168.26.135 port: 7135(master) port: 8135(slave) 统一安装目录: /home/develop/redis 安装需要的包 gcc tcl sudo apt-get install gcc sudo apt-get install tcl 创建目录 redis-master redis-slave mkdir redis-master mkdir redis-slave 下载redis-3.0.3 wget http://download.redis.io/releases/redis-3.0.3.tar.gz tar -zxvf redis-3.0.3.tar.gz 192.168.26.133: mkdir -p /home/develop/redis/cluster/7133 mkdir -p /home/develop/redis/cluster/8133 192.168.26.134: mkdir -p /home/develop