Celery、rabbitmq:如何安装远程工作人员?

发布于 2024-12-27 18:54:12 字数 134 浏览 3 评论 0原文

我可以有多台机器来执行 django 分发的任务并返回消息吗?我研究了 celery/rabbitmq,我不确定是否可以在远程计算机上设置 celery 工作人员。有人可以指导我通过这里吗? 如果这是不可能或非常困难,是否有其他解决方案可以解决该问题?

Can I have multiple machines to execute the tasks and return messages that are distributed by django? I looked into celery/rabbitmq, I'm not sure if I can setup celery workers on remote computers. Can anyone guide me through here?
If this is not possible or very hard, any alternative solution for the problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枯叶蝶 2025-01-03 18:54:12

您可以通过将 Django 项目安装到远程计算机上来完成此操作,然后确保将其配置为使用正确的代理、数据库服务器和媒体目录(假设您的任务需要访问这些目录)。

You can do this by installing your Django project on to the remote computer, and then ensuring that it is configured to use the correct broker, database server, and media directory (assuming your tasks need access to that).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文