1 解决Redis错误MISCONF Redis is configured to save RDB sna
在执行SET等命令时,提示以下错误
127.0.0.1:6378> SET bar 1
(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
127.0.0.1:6378> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6378>
127.0.0.1:6378> SET bar 1
OK
127.0.0.1:6378>
Redis被配置为保存数据库快照,但它目前不能持久化到硬盘。用来修改集合数据的命令不能用。请查看Redis日志的详细错误信息。
原因:
强制关闭Redis快照导致不能持久化。
解决:
执行config set stop-writes-on-bgsave-error no
2 redis make install出错
make[2]: 离开目录“/root/redis-3.0.5/deps”
make[1]: [persist-settings] 错误 2 (忽略)
CC adlist.o
/bin/sh: cc: 未找到命令
make[1]: *** [adlist.o] 错误 127
make[1]: 离开目录“/root/redis-3.0.5/src”
make: *** [all] 错误 2
处理方法:
yum install gcc-c++ -y
网友评论