Stan Blog

學習過程中的一些記錄

[Rails] migrate 發生 redis error

有時候在 Rails 執行 migrate 時,會遇到 redis 的錯誤

MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk

06-21-1

解法:

1.進 redis cli,下指令

$ redis-cli
> config set stop-writes-on-bgsave-error no

2.重開 redis service

macOS (brew):
  brew services restart redis

Linux:
  service redis restart
      or
  systemctl restart redis

Ref:

Comments

comments powered by Disqus