最简redis集群配置
Download, extract and compile Redis with:
$ wget http://download.redis.io/releases/redis-3.0.7.tar.gz
$ tar xzf redis-3.0.7.tar.gz
$ cd redis-3.0.7 $ make
The binaries that are now compiled are available in the src directory. Run Redis with:
$ src/redis-server
You can interact with Redis using the built-in client: $ src/redis-cli
redis集群 配置
master:
1,关闭RDB 注释掉 save
2, tcp-keepaviable 连接超时
slave:
1,关闭RDB 注释掉 save
2, tcp-keepaviable 连接超时
3, slaveof ip port