1、bind
bind 192.168.1.100 10.0.0.1     # listens on two specific IPv4 addresses
bind 127.0.0.1 ::1              # listens on loopback IPv4 and IPv6
bind * -::*                     # like the default, all available interfaces
bind 0.0.0.0
2、protected-mode no
protected-mode yes + 无密码 = 本地访问
3、port 6379
4、daemonize no
5、logfile ""
Specify the log file name. Also the empty string can be used to force
Redis to log on the standard output. Note that if you use standard
output for logging but daemonize, logs will be sent to /dev/null
6、databases 16
7、save  
save "":不使用rdb
save 5 1:5秒内至少有1个key改动,5秒过后进行bgsave
redis不主动设置save的话,默认有
  - save 3600 1
  - save 300 100 
  - save 60 10000 
8、rdbcompression yes
是否进行rdb文件压缩。压缩会消耗内存性能,但压缩能解约磁盘
9、dbfilename dump.rdb
10、dir ./
rdb文件和aof文件都会创建在dir指定的目录
The working directory.
The DB will be written inside this directory, with the filename specified
above using the 'dbfilename' configuration directive.
The Append Only File will also be created inside this directory.
Note that you must specify a directory here, not a file name.
11、appendonly yes
是否开启AOF功能,默认是no
12、appendfilename "appendonly.aof"
AOF文件的名称
13、aof写入策略
appendfsync always     # 表示每执行一次写命令,立即记录到AOF文件
appendfsync everysec   # 写命令执行完先放入AOF缓冲区,然后表示每隔1秒将缓冲区数据写到AOF文件,是默认方案
appendfsync no         # 写命令执行完先放入AOF缓冲区,由操作系统决定何时将缓冲区内容写回磁盘
14、Redis也会在触发阈值时自动去重写AOF文件。阈值也可以在redis.conf中配置
由于AOF可能有多个命令对同一个key操作,为了简化,Redis提供bgrewriteaof命令对AOF文件进行重写简化
auto-aof-rewrite-percentage 100  #AOF文件比上次文件 增长超过多少百分比则触发重写
auto-aof-rewrite-min-size 64mb   # AOF文件体积最小多大以上才触发重写 
15、slaveof  
配置这行,以该redis.conf启动的redis服务就成了别人的从机
16、redis实例的声明 IP
replica-announce-ip 192.168.150.101