redis保存失败(save (error) ERR)+redis关闭失败:Failed opening the RDB file dump.rdb XXX for saving: Permissio
来源:互联网 发布:电话软件app 编辑:程序博客网 时间:2024/06/06 03:34
redis保存失败+redis关闭失败
1、错误现象:
在redis客户端中进行保存操作,显示失败:127.0.0.1:6379> save
(error) ERR
使用kill命令关闭redis服务后,查看进程,redis服务进程仍然存在:
pi@raspberrypi /proc/3176 $ ps aux|grep redis
pi 3176 2.1 0.3 39880 3676 ? Ssl 16:10 0:50 /usr/local/bin/redis-server 0.0.0.0:6379
pi 4586 0.0 0.1 5728 1668 pts/1 S+ 16:49 0:00 grep --color=auto redis
pi@raspberrypi /proc/3176 $ sudo kill 3176
pi@raspberrypi /proc/3176 $ ps aux|grep redis
pi 3176 2.1 0.3 39880 3676 ? Ssl 16:10 0:50 /usr/local/bin/redis-server 0.0.0.0:6379
pi 4592 0.0 0.1 5728 1780 pts/1 S+ 16:49 0:00 grep --color=auto redis
2、日志分析:
在redis客户端中进行保存操作,显示失败:
127.0.0.1:6379> save
(error) ERR
使用kill命令关闭redis服务后,查看进程,redis服务进程仍然存在:
pi@raspberrypi /proc/3176 $ ps aux|grep redis
pi 3176 2.1 0.3 39880 3676 ? Ssl 16:10 0:50 /usr/local/bin/redis-server 0.0.0.0:6379
pi 4586 0.0 0.1 5728 1668 pts/1 S+ 16:49 0:00 grep --color=auto redis
pi@raspberrypi /proc/3176 $ sudo kill 3176
pi@raspberrypi /proc/3176 $ ps aux|grep redis
pi 3176 2.1 0.3 39880 3676 ? Ssl 16:10 0:50 /usr/local/bin/redis-server 0.0.0.0:6379
pi 4592 0.0 0.1 5728 1780 pts/1 S+ 16:49 0:00 grep --color=auto redis
3、解决方法
这里将该目录其他用户权限改为具有读、写、执行的权限:
pi@raspberrypi /var/lib/redis $ sudo chmod 757 6379
终止redis进程,然后重启redis-server,发现save操作和服务关闭,都可以了。
(1)终止redis进程:
pi@raspberrypi /var/lib/redis/6379 $ ps aux|grep redis
pi 12281 1.5 0.4 35788 3988 pts/4 Sl+ 04:59 0:05 redis-server *:6379
pi 12388 0.0 0.1 5728 1668 pts/0 S+ 05:06 0:00 grep --color=auto redis
pi@raspberrypi /var/lib/redis/6379 $ kill -9 12281
(2)redis保存操作:
127.0.0.1:6379> save
OK
(3)redis服务关闭:
12412:signal-handler (1497763338) Received SIGTERM scheduling shutdown...
12412:M 18 Jun 05:22:18.723 # User requested shutdown...
12412:M 18 Jun 05:22:18.723 * Saving the final RDB snapshot before exiting.
12412:M 18 Jun 05:22:18.750 * DB saved on disk
12412:M 18 Jun 05:22:18.751 # Redis is now ready to exit, bye bye...
- redis保存失败(save (error) ERR)+redis关闭失败:Failed opening the RDB file dump.rdb XXX for saving: Permissio
- Redis:Failed opening .rdb for saving: Permission denied 解决方案
- redis还原dump.rdb
- redis:RDB快照失败,MISCONF Redis is configured to save RDB snapshots, but is currently not able to persis
- redis error MISCONF Redis is configured to save RDB snapshots
- Redis rdb dump的问题
- (error) MISCONF Redis is configured to save RDB snapshots...解决
- redis快照文件dump.rdb解析工具--redis-rdb-tools
- redis rdb
- RDB redis
- redis---RDB
- redis:RDB快照失败问题排查与处理
- redis is configured to save rdb snapshots
- Redis is configured to save RDB snapshots
- redis之dump.rdb存放位置
- redis的dump.rdb备份数据
- Redis Error --MISCONF Redis is configured to save RDB snapshots省略
- redis问题:MISCONF Redis is configured to save RDB snapshots
- PAT程序设计考题——甲级1042(洗牌机) C++实现
- 各种网站工具以及资料
- PHPStorm基本使用
- 记录opengl运行窗口全白色
- chmod的权限代号
- redis保存失败(save (error) ERR)+redis关闭失败:Failed opening the RDB file dump.rdb XXX for saving: Permissio
- 2、Linux文件操作命令
- C语言常用字符串接口总结
- Vim配置手册
- PHP配置调试工具XDebug
- java小算法介绍-合并List中满足某些字段相同的记录
- Android studio实现按钮的点击事件
- 阿里云 LNMP 环境配置
- 隐私政策声明