如何更改django中celeryd的权限

发布于 2024-11-19 15:50:59 字数 254 浏览 3 评论 0原文

我已经看到,当我通过普通用户执行 celeryd 时,我收到权限被拒绝错误

/opt/python2.7/bin/celeryd

但它以 root 用户执行

在文本中它说

"Running celeryd with superuser privileges is not encouraged!")

我如何为 celeryd 的 user1 分配权限

I have seen that when i execute celeryd via normal user then i get permission denied error

/opt/python2.7/bin/celeryd

But it executes with root user

In the text it says that

"Running celeryd with superuser privileges is not encouraged!")

How can i assign previlege to user1 for celeryd

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

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

发布评论

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

评论(1

爱人如己 2024-11-26 15:50:59

您可以通过在终端中运行以下命令来为所有用户添加执行权限:

sudo chmod u+x /opt/python2.7/bin/celeryd

You can add execute permissions for all users by running the following in a terminal:

sudo chmod u+x /opt/python2.7/bin/celeryd

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