keywords: Redis occupies C-disk, Windows Redis, 64-bit Windows Redis Mania occupies C-space,Redis starts creating redisqfolk_****.dat files,Redis-server.exe Redis.windows.conf , paging file,Appdata\local\redis,heapdir,maxheap, Transfer to other disk, system disk is occupied, no space
Original CSDN blog post, reprint need to declare! Address:http://blog.csdn.net/qq285744011/article/details/51002409
Windows Redis Mania occupies the C-disk space! But also more and more arrogant: 4g,8g,16g ...
"The cause of the problem"
After Windows Redis starts, a large file is automatically created in the C drive, C:\Users\{your user name}\appdata\local\redis\redisqfolk_****.dat
By customizing the path, we can move it to another partition and limit its size.
【】"Resolution"
= = = streamlined thinking = =
Modify the configuration file redis.windows.confto set the folk dedicated buffer file for Redis to a different partition.
Specifies that the Redis-server.exe read this configuration file.
= = = specific steps = = =
(pictured below)
0. Stop Redis Service
1. Create a folder on the D drive Myredisswap
2. create a shortcut for Redis-server.exe Myredis
3. For the Myredis target property, add and specify the read configuration file redis.windows.conf, preceded by a space
4. Modify the redis.windows.conf to add two settings to the file location: Maxheap 4294967296 and Heapdir D:\MyRedisSwap\ (see illustration)
5. Start Redis via shortcut Myredis
6. Get it done!
= = = detailed diagram = = =
================== End =====================
HDD Killer! Windows Redis Mania occupies the C-disk space!