$ wget http://download.redis.io/releases/redis-2.8.17.tar.gz $ tar xzf redis-2.8.17.tar.gz $ cd redis-2.8.17 $ make
$ cd src $ ./redis-server
$ ./redis-cli ../redis.conf //啓動客戶端並指定配置文件 $ ./redis-cli shutdown //中止服務
master配置修改端口:redis
port 6000 requirepass 123456
slave修改配置:ui
port 6001 slaveof 127.0.0.1 6000 masterauth 123456 requirepass 123456