首页
文章
登录
登录
注册
忘记密码
反馈
文章
Redis不断重启
Redis不断重启
lyj
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`
分享
×
使用手机扫描二维码分享
暂无评论
请登录后评论
新评论
删除
关闭
提交