[9380] 28 Feb 10:38:23.241 # Server started, Redis version 3.2.100
[9380] 28 Feb 10:38:23.241 * DB loaded from disk: 0.000 seconds
[9380] 28 Feb 10:38:23.241 * The server is now ready to accept connections on port 6379
[9380] 28 Feb 10:38:23.241 - 0 clients connected (0 slaves), 644280 bytes in use
[9380] 28 Feb 10:38:28.242 - 0 clients connected (0 slaves), 644280 bytes in use
[9380] 28 Feb 10:38:33.242 - 0 clients connected (0 slaves), 644280 bytes in use
[9380] 28 Feb 10:38:38.242 - 0 clients connected (0 slaves), 644280 bytes in use
[9380] 28 Feb 10:38:43.243 - 0 clients connected (0 slaves), 644280 bytes in use
[9380] 28 Feb 10:38:48.243 - 0 clients connected (0 slaves), 644280 bytes in use
[9380] 28 Feb 10:38:53.243 - 0 clients connected (0 slaves), 644280 bytes in use
[9380] 28 Feb 10:38:54.110 - Accepted 127.0.0.1:17916
[9380] 28 Feb 10:38:58.243 - 1 clients connected (0 slaves), 665144 bytes in use
附件:
自定义配置文件redis.confi的解析:
#是否作为守护进程运行
daemonize no
#Redis 默认监听端口
port 6379
#客户端闲置多少秒后,断开连接
timeout 300
#日志显示级别
loglevel verbose
#指定日志输出的文件名,也可指定到标准输出端口
logfile redis.log
#设置数据库的数量,默认最大是16,默认连接的数据库是0,可以通过select N 来连接不同的数据库
databases 32
#Dump持久化策略
#当有一条Keys 数据被改变是,900 秒刷新到disk 一次
#save 900 1
#当有10 条Keys 数据被改变时,300 秒刷新到disk 一次
save 300 100
#当有1w 条keys 数据被改变时,60 秒刷新到disk 一次
save 6000 10000
#当dump .rdb 数据库的时候是否压缩数据对象
rdbcompression yes
#dump 持久化数据保存的文件名
dbfilename dump.rdb
########### Replication #####################
#Redis的主从配置,配置slaveof则实例作为从服务器
#slaveof 192.168.0.105 6379
#主服务器连接密码
# masterauth <master-password>
############## 安全性 ###########
#设置连接密码
#requirepass <password>
############### LIMITS ##############
#最大客户端连接数
# maxclients 128
#最大内存使用率
# maxmemory <bytes>
########## APPEND ONLY MODE #########
#是否开启日志功能
appendonly no
# AOF持久化策略
#appendfsync always
#appendfsync everysec
#appendfsync no
################ VIRTUAL MEMORY ###########
#是否开启VM 功能
#vm-enabled no
# vm-enabled yes
#vm-swap-file logs/redis.swap
#vm-max-memory 0
#vm-page-size 32
#vm-pages 134217728
#vm-max-threads 4