你好,前辈,我按视频操作,把项目部署到了自己的云服务器。可以正常使用,但过不了两天redis在正常登录时,报 错如下:
MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error…
在网上找到的解决方案是 config set stop-writes-on-bgsave-error option no.
按这个方法,设置后,重启项目,可以了。但没过两天又是这样的报错。反复三次,后来就去redis.log看了一下,每次报错如下:
25273:C 15 Dec 10:47:37.097 # Failed opening the RDB file web (in server root dir /etc/cron.d) for saving: Permission denied
26881:M 15 Dec 10:47:37.197 # Background saving error
自己的解决方法:sudo chmod -R 777 /etc/cron.d
但是又报错 chmod: 更改"/etc/cron.d" 的权限: 不允许的操作
在网上又一段搜索,说是 chattr -i /etc/cron.d 可以的,但是又报下面的错误:
[root@instance-ggjyrurn /]# chattr -i /etc/cron.d
-bash: chattr: command not found
又按照网上说的,安装: yum install e2fsprogs
但还是报错chattr: command not found
真是没办法了
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程