硬碟殺手!Windows版Redis瘋狂佔用C盤空間!

來源:互聯網
上載者:User

標籤:post   服務   方式   detail   end   redis啟動   nbsp   建立   詳細步驟   

關鍵詞:Redis佔用C盤,Windows Redis,64位Windows版Redis瘋狂佔用C盤空間,redis啟動後建立RedisQFolk_****.dat檔案。redis-server.exe redis.windows.conf。分頁檔案,AppData\Local\Redis,heapdir。maxheap ,轉移到其它盤。系統硬碟被佔用。沒空間了


原創CSDN部落格文章。轉載需聲明。地址:http://blog.csdn.net/qq285744011/article/details/51002409

Windows版Redis瘋狂佔用C盤空間!

並且還越來越囂張:4G,8G,16G...
【問題的解決辦法】

Windows版Redis啟動後,會在C盤自己主動建立一個非常大的檔案。C:\Users\{你的username}\AppData\Local\Redis\RedisQFolk_****.dat

我們通過自己定義路徑就可以將其轉移到其它分區。並限制其大小。


【】【解決】

=== 精簡思路 ===

改動設定檔redis.windows.conf。將Redis的Folk專用的緩衝檔案設定到其它分區。

指定redis-server.exe讀取這個設定檔。


=== 詳細步驟 ===

(最以下有圖示)

0. 停止Redis服務

1. 在D盤建立一個目錄MyRedisSwap

2. 為redis-server.exe建立捷徑MyRedis
3. 為MyRedis的目標屬性,加入並指定讀取的設定檔redis.windows.conf,前面要加空格

4. 改動redis.windows.conf,在檔案相應位置 加入兩個設定:maxheap 4294967296 和 heapdir D:\MyRedisSwap\  (見圖示)

5. 通過捷徑MyRedis啟動Redis

6. 搞定。



=== 具體圖示 ===





















================== End =====================








  

硬碟殺手!Windows版Redis瘋狂佔用C盤空間!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.