尝试启动我的主管配置时出错(生成错误)

2024-10-01 11:23:16 发布

您现在位置:Python中文网/ 问答频道 /正文

WebAPP_芹菜.conf文件

; ================================== ; celery worker supervisor example ; ================================== ; the name of your supervisord program [program:webappcelery] ; Set full path to celery program if using virtualenv command=/home/brennan/webapp/env/bin/celery worker -A WebAPP --loglevel=INFO ; The directory to your Django project directory=/home/brennan/webapp/ ; If supervisord is run as the root user, switch users to this UNIX user account ; before doing any processing. user=brennan ; Supervisor will start as many instances of this program as named by numprocs numprocs=1 ; Put process stdout output in this file stdout_logfile=/var/log/celery/webapp_worker.log ; Put process stderr output in this file stderr_logfile=/var/log/celery/webapp_worker.log ; If true, this program will start automatically when supervisord is started autostart=true ; May be one of false, unexpected, or true. If false, the process will never ; be autorestarted. If unexpected, the process will be restart when the program ; exits with an exit code that is not one of the exit codes associated with this ; process’ configuration (see exitcodes). If true, the process will be ; unconditionally restarted when it exits, without regard to its exit code. autorestart=true ; The total number of seconds which the program needs to stay running after ; a startup to consider the start successful. startsecs=10 ; Need to wait for currently executing tasks to finish at shutdown. ; Increase this if you have very long running tasks. stopwaitsecs = 600 ; When resorting to send SIGKILL to the program to terminate it ; send SIGKILL to its whole process group instead, ; taking care of its children as well. killasgroup=true ; if your broker is supervised, set its priority higher ; so it starts first priority=998

我在终端上输入的内容给了我一个错误

sudo supervisorctl restart webappcelery webappcelery: ERROR (not running) webappcelery: ERROR (spawn error)
我在用芹菜和Redis将我的项目部署到digitalocean Web服务器上时遇到了很多麻烦。我看了大量的指南和文档,我似乎无法通过这里。如有必要,将使用更多代码进行更新。

Tags: ofthetotrueifisasthis