求助Redis报错Background saving error

yokey1219 2017-07-19 10:32:12
各位大神,在Ubuntu16.04 上安装了Redis,但是每次运行一段时间后台Log就有不停的有这样的错误,是什么地方没有配置正确的?

引用
# Background saving error
857:M 19 Jul 09:35:54.086 * 1 changes in 900 seconds. Saving...
857:M 19 Jul 09:35:54.086 * Background saving started by pid 787
787:C 19 Jul 09:35:54.086 # Failed opening .rdb for saving: Read-only file system
857:M 19 Jul 09:35:54.186 # Background saving error

...全文
5533 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yokey1219 2018-05-02
  • 打赏
  • 举报
回复
补充,奇怪的用户权限的问题,因为redis服务器的启动用户是redis,而文件目录一般是root用户创建。所以需要用chown和chgrp命令更改dump.rdb所在目录的用户和用户组。
yokey1219 2017-07-20
  • 打赏
  • 举报
回复
此贴结了:
引用
819:M 20 Jul 11:14:32.081 * 1 changes in 900 seconds. Saving... 819:M 20 Jul 11:14:32.082 * Background saving started by pid 1441 1441:C 20 Jul 11:14:32.088 * DB saved on disk 1441:C 20 Jul 11:14:32.089 * RDB: 0 MB of memory used by copy-on-write 819:M 20 Jul 11:14:32.182 * Background saving terminated with success
已经成功了。 原来是配置文件的问题: dir /var/lib/redis-server/ 原来写的少了最后的斜杠
yokey1219 2017-07-20
  • 打赏
  • 举报
回复
引用 1 楼 qq_16259463 的回复:
文件系统只读。。。是不是redis权限不够
我有想过这个问题。我是apt-get安装的,在网上查了权限设置的资料,感觉已经设置过了,但是好像不起作用。不知道具体是哪个位置的权限没有设置正确。
疯雪 2017-07-19
  • 打赏
  • 举报
回复
文件系统只读。。。是不是redis权限不够
Twitter Digg Facebook Del.icio.us Reddit Stumbleupon Newsvine Technorati Mr. Wong Yahoo! Google Windows Live Send as Email Add to your CodeProject bookmarks Discuss this article 85 Print Article Database » Database » Other databasesLicence CPOL First Posted 19 Jan 2012 Views 24,219 Downloads 992 Bookmarked 74 times RaptorDB - The Key Value Store V2 By Mehdi Gholam | 8 Mar 2012 | Unedited contribution C#.NETDBABeginnerIntermediateAdvanceddatabase Even faster Key/Value store nosql embedded database engine utilizing the new MGIndex data structure with MurMur2 Hashing and WAH Bitmap indexes for duplicates. See Also More like this More by this author Article Browse Code Stats Revisions (8) Alternatives 4.95 (56 votes) 1 2 3 4 5 4.95/5 - 56 votes μ 4.95, σa 1.05 [?] Is your email address OK? You are signed up for our newsletters but your email address is either unconfirmed, or has not been reconfirmed in a long time. Please click here to have a confirmation email sent so we can confirm your email address and start sending you newsletters again. Alternatively, you can update your subscriptions. Add your own alternative version Introduction What is RaptorDB? Features Why another data structure? The problem with a b+tree Requirements of a good index structure The MGIndex Page Splits Interesting side effects of MGIndex The road not taken / the road taken and doubled back! Performance Tests Comparing B+tree and MGIndex Really big data sets! Index parameter tuning Performance Tests - v2.3 Using the Code Differences to v1 Using RaptorDBString and RaptorDBGuid Global parameters RaptorDB interface Non-clean shutdowns Removing Keys Unit tests File Formats File Format : *.mgdat File Format : *.mgbmp File Format : *.mgidx File Format : *.mgbmr , *.mgrec History Download RaptorDB_v2.0.zip - 38.7 KB Download RaptorDB_v2.1.zip - 39 KB Download RaptorDB_v2.2.zip - 39 KB Download RaptorDB_v2.3.zip - 39.6 KB D

25,985

社区成员

发帖
与我相关
我的任务
社区描述
高性能WEB开发
社区管理员
  • 高性能WEB开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧