首页
文章
登录
登录
注册
忘记密码
反馈
Redis不断重启
lyj
发布 2024-03-19
639
分享
> 系统 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`
分享
分享这篇文章
关闭
在设备上扫描二维码即可立即阅读或分享。
复制
使用上方链接与团队或朋友分享。
暂无评论
请登录后评论
新评论
删除
关闭
提交