我有redis(版本3.0.5)作为独立服务器运行。由于我不希望redis将数据保存到文件,因此在save
文件中注释了redis.conf
个参数(然后服务器重新启动)
#save 900 1
#save 300 10
#save 60 10000
即使在上述配置之后,redis创建dump.rdb
文件,以下是从日志文件中提取,该文件显示redis将数据保存到磁盘。如何禁用它?
1857:M 19 Nov 15:40:18.693 * The server is now ready to accept connections on port 6379
1857:M 19 Nov 15:45:31.464 * 100 changes in 300 seconds. Saving...
1857:M 19 Nov 15:45:31.465 * Background saving started by pid 3020
3020:C 19 Nov 15:45:41.311 * DB saved on disk
3020:C 19 Nov 15:45:41.320 * RDB: 24 MB of memory used by copy-on-write
1857:M 19 Nov 15:45:41.398 * Background saving terminated with success
1857:M 19 Nov 15:46:42.002 * 10000 changes in 60 seconds. Saving...
1857:M 19 Nov 15:46:42.003 * Background saving started by pid 3490
3490:C 19 Nov 15:46:44.869 * DB saved on disk
3490:C 19 Nov 15:46:44.870 * RDB: 44 MB of memory used by copy-on-write