使用主管的权限被拒绝

时间:2015-05-12 12:41:46

标签: django gunicorn supervisor

我正在使用gunicorn和nginx在Ubuntu上运行django。我也在用jenkins来构建。 Gunicorn为django和nginx提供静态文件。 Gunicorn将作为后台服务运行。因此我正在使用supervisord。现在我想使用我的后端将图像发布到我的数据库中。但我得到这个错误(bmp是我的形象):

[Errno 13] Permission denied: '/crwll8z4.bmp'

Request Method:     POST
Request URL:    http://url:9000/post/
Django Version:     1.7
Exception Type:     OSError
Exception Value:    

[Errno 13] Permission denied: '/crwll8z4.bmp'
Exception Location:     /.virtualenvs/newenv/local/lib/python2.7/site-packages/django/core/files/storage.py in _save, line 219

在做了一些研究之后,我了解到哪个实例让你的后端运行很重要。所以我的主管是我的后端。但我的主管是从根本上开始的。并且root将能够在每个目录中写下每个文件(也是我的图像)。当我做htop时,我没有看到枪炮的实例。只有一个监督员。所以我真的被卡住了。有人能帮助我吗?

0 个答案:

没有答案
相关问题