主页
文章
知识库
云盘
工具
登录
登录
注册
忘记密码
反馈
文章
Redis不断重启
Redis不断重启
lyjin
2024-03-19
> 系统 Ubuntu 20.04.6 > Redis 5.0.7 ### 现象: Redis每隔1分钟或者2分钟会自动重启,日志(/var/log/redis/redis-server.log)如下 ``` signal-handler (1710819652) Received SIGTERM scheduling shutdown... User requested shutdown... Saving the final RDB snapshot before exiting. DB saved on disk Removing the pid file. Redis is now ready to exit, bye bye... oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo ``` ### 解决 redis使用`apt`的方式安装 修改文件`/etc/systemd/system/redis.service` 将`Type=forking`修改为`Type=simple` 然后重新加载服务 `systemctl daemon-reload`
分享
×
用手机扫码分享
没有评论
请登陆后评论
新建评论
移除
关闭
提交