Redis配置參數的熱修改,redis配置參數

來源:互聯網
上載者:User

Redis配置參數的熱修改,redis配置參數

Redis使用config命令,可以對配置項參數熱修改,不必重啟


Redis最好不要重啟,重啟一次會引發如下問題

1、如果資料很多(例如幾個G),讀起來很慢;

2、重啟風險很大,Redis有記憶體陷阱

3、重啟會引發讀快照,讀AOF檔案


使用config get * 獲得所有的配置項的key


config set timeout 250改變key的value


config get  *  查看



相關文章

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.