标签:daemonize 技术分享 创建 -- logs -128 测试 ref ruby
地址:http://www.redis.net.cn/download/
位置:/usr/local/src
命令1:make
命令2:make install (make install PREFIX=/usr/local/redis 安装到指定目录)
cp redis.conf /usr/local/redis/bin/
mkdir redis-cluster
cp /usr/local/redis/bin ./redis01
cluster-enabled yes
daemonize yes
port 7001
yum install ruby
yum install rubygems
gem install redis-3.0.0.gem
启动6个redis
./redis-trib.rb create --replicas 1 192.168.25.153:7001 192.168.25.153:7002 192.168.25.153:7003 192.168.25.153:7004 192.168.25.153:7005 192.168.25.153:7006 (192.168.25.153 为对应自己虚拟机的ip地址)
redis01/redis-cli -h 192.168.25.153 -p 7002 -c
标签:daemonize 技术分享 创建 -- logs -128 测试 ref ruby
原文地址:http://www.cnblogs.com/youlangta/p/6936949.html