我正在使用Bitnami AMI进行django项目,该项目还需要芹菜和celerycam运行。我想使用主管来启动和管理这些服务,但遇到了麻烦。两者的配置类似,所以我只粘贴了celeryd(/etc/supervisor/conf.d/celeryd.conf):
[program:celeryd]
command = python /home/bitnami/apps/django/django_projects/iris_django/manage.py celeryd -B -E
directory = /home/bitnami/apps/django/django_projects/iris_django
user = root
autostart = true
autorestart = true
stdout_logfile = /var/log/supervisor/celeryd.log
stderr_logfile = /var/log/supervisor/celeryd_err.log
当我尝试启动它时,我明白了:
celeryd FATAL Exited too quickly (process log may have details)
日志表明“manage.py”文件的路径不正确。但是,我没有使用虚拟机(我不认为),我的所有模块(django,celery等)都安装在基础Python安装上。有什么想法吗?
更新:这是日志信息(Django通过PIP明确安装):
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
Traceback (most recent call last):
File "/home/bitnami/apps/django/django_projects/iris_django/manage.py", line 8, in <module>