(一)因為redis 是基於把內存的,重啟后redis中的內容會清除
1 進入redis 的 redis.conf 文件 編輯命令
appendonly yes
2 esc shitf + zz 退出保存編輯內容
(二)其余配置
1 進入 redis 官網 選擇documention
2 下拉找到 configuration
3 選擇你的redis 版本 進去看 配置參考
4 部分
選擇了就要承受
要不就別想