中国站长wordpress主题 仿蛋花
1、创建/myredis文件夹
 2、复制redis.conf配置文件到新建的文件夹中
 3、配置一主两从,创建三个配置文件
 ----redis6379.conf
 ----redis6380.conf
 ----redis6381.conf
4、在三个配置文件写入内容
 redis6379.conf里面的内容
 include /myredis/redis.conf
 pidfile /var/redis_6379.conf
 port 6379
 dbfilename dump6379.rdb
 其他两个文件同上,只需修改数字就行
5、启动三个redis服务
 使用 info replication查看当前主机运行状况
 在从机上执行slaveof 主机IP 端口号
