Redis是很有效的一项服务,但是初学者会碰到很多问题,我希望这篇文章能够帮助到他们。

在运行Redis服务后,几分钟后抛出一个错误:

Failed Opening .rdb for saving:Permission denied.

Background saving error

根据错误提示,是Redis后台保存时遭遇了权限问题。

  1. 在终端中打开redis.conf文件,redis.conf文件通常是在/usr/local/bin  目录下

    $ cd /usr/local/bin

    $ vim redis.conf

  2. 2

    在redis.conf文件中搜索dir的配置项,dir配置项是rdb文件保存的目录,

    # The working directory.

    ## The DB will be written inside this directory, with the filename specified# above using the 'dbfilename' configuration directive.

    # # The Append Only File will also be created inside this directory.

    # # Note that you must specify a directory here, not a file name.

    dir ./

    此处./表示redis-server所在的目录,查看该目录的权限

  3. 3

    查看权限

    $ ls -l

    ....

    -rw-r--r--.    1    root     root     35    Aug    4    00:59    dump.rdb

    ....

    此处dump.rdb文件root账号是有读写权限,而同为管理员组的其他账号之后读权限,所以造成了上诉问题

  4. 4

    修改文件权限:

    $ chmod g+w dump.rdb

解决Redis服务错误一例听语音相关推荐

  1. 重启oracle ora-01033,解决连接ORACLE错误一例:ORA-01033: ORACLE 正在初始化或关闭 | 学步园...

    客户发现连接数据库有问题,错误有: ORA-01033: ORACLE 正在初始化或关闭 ORA-00600: 内部错误代码 首先修改环境变量,保证cmd下访问到正确的oracle监听,如: E:\o ...

  2. internal server error怎么解决_解决redis连接错误:MISCONF Redis is configured to save RDB

    安装redis后在设置过期时间时,突然报错:MISCONF Redis is configured to save RDB snapshots, but it is currently not abl ...

  3. 解决redis连接错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...

    今天重启游戏服务器在连接redis数据库时突然报错:MISCONF Redis is configured to save RDB snapshots, but it is currently not ...

  4. 解决redis连接错误:MISCONF Redis is configured to save RDB snapshots

    今天Redis服务器在连接redis数据库时突然报错:MISCONF Redis is configured to save RDB snapshots, but it is currently no ...

  5. redis数据库错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persis

    转载自:解决redis连接错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to.. ...

  6. win10环境Redis安装及配置,以及Redis服务无法启动的解决方法

    1.下载redis 由于官网只有linux安装包https://redis.io/download,windows需要在GitHub下载:https://github.com/MicrosoftArc ...

  7. redis未能启动服务器,redis服务启动不了的解决办法(服务器应非法关机了)

    1.确认redis没运行.[[email protected] run]# /etc/init.d/kkmail_redis status redis is not running 2.删除pid文件 ...

  8. 图解Myeclipse 导入Java Web项目报错的解决办法听语音

    图解Myeclipse 导入Java Web项目报错的解决办法听语音 https://jingyan.baidu.com/article/046a7b3e953ef3f9c27fa93d.html

  9. 服务器系统上1068错误,错误1068,详细教您启动网络服务错误1068怎么解决

    在电脑中,通常开机后就会自动连接网络宽带,不过有用户遇到问题.开机后网络图标显示红叉或者图标正常无法上网,打开网络和共享中心才发现是服务或者组无法启动,启动时显示错误1068,这该怎么办?下面,小编跟 ...

最新文章

  1. tensorflow2 存取模型_思维导图:长短期记忆模型
  2. Leetcode 382. 链表随机节点 解题思路及C++实现
  3. [react-router] React-Router的<Link>标签和<a>标签有什么区别
  4. 使用github+hexo搭建静态blog
  5. SqlHelper编写
  6. wpfbutton按钮禁用_wpfbutton按钮禁用_如何在WPF窗口中隐藏关闭按钮?
  7. Linux下find命令用法详解
  8. vs怎么把文字超链接_怎么拥有自己设计的简单个人网站(超细节)
  9. linux7保存防火墙规则,centos7中没有service iptables save指令来保存防火墙规则
  10. FCKeditor上传图片显示叉叉的问题的解决方案
  11. 【医学图像分割】基于matlab磁共振成像 (MRI) 数值模拟平台【含Matlab源码 826期】
  12. CMake的安装(超级详细)
  13. 首旅如家仍计划全年开店800-1000家;万豪旗下双品牌酒店“帆船”于宁夏银川启幕 | 美通企业日报...
  14. 超全必看!开源时间序列数据集整理
  15. Python3的对象和类
  16. Django 字段选项之 related_name 和 related_query_name
  17. 3D游戏图形API简史
  18. FormData数据格式
  19. 关于win11 碍眼的主文件夹的有效删除办法
  20. 开工大吉,开启新征程!

热门文章

  1. PHP字符串增强加密
  2. goldengate for oracle 10g学习
  3. Spring.Resource与Spring资源获取方式
  4. linux 下修改最大文件数
  5. 微信小程序家庭记账本开发进度二
  6. Linux CenOS Python3 和 python2 共存
  7. 机器学习实战——特征工程之数据预处理
  8. 职业化之可以固化的六个工作模式
  9. IplImage类型解释和举例
  10. 设置progressbar进度条颜色