Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu源码部署存在redis频繁自动重启问题 #753

Open
Lingghh opened this issue Jan 17, 2023 · 2 comments
Open

Ubuntu源码部署存在redis频繁自动重启问题 #753

Lingghh opened this issue Jan 17, 2023 · 2 comments

Comments

@Lingghh
Copy link
Collaborator

Lingghh commented Jan 17, 2023

No description provided.

@Lingghh
Copy link
Collaborator Author

Lingghh commented May 25, 2023

可以修改下本地的service文件,避免redis频繁重启(这里看起来可能是ubuntu上使用apt安装redis存在的兼容性问题)
/etc/systemd/system/redis.service,将Type=forking 改为 Type=simple

然后执行
systemctl daemon-reload
systemctl restart redis

@980468094
Copy link

我在银河麒麟V10(底层用的Ubuntu18.04) 上也碰到这个问题了,具体表现是celery在项目刚启动的时候能正常使用,但是过了几分钟celery的work就不工作了,导致在扫描的时候项目卡死,日志中的结构是这样
572bba0bec217ec3d6cb2ee5b10b656
查看redis的日志可以看到redis差不多每格两分钟就重新启动一次,使用楼主的方法已经修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants