nssm install celery-beat “c:\python36\scripts\celery.exe” nssm set celery-beat AppDirectory c:\project_path nssm set celery-beat AppParameters -A project_name beat -l info --logfile=c:\project_path\logs\beat.log --pidfile=c:\project_path\logs\beat.pid
安装worker
nssm install celery-worker “c:\python36\scripts\celery.exe” nssm set celery-worker AppDirectory c:\project_path nssm set celery-worker AppParameters -A project_name worker -Q default -P gevent --concurrency=8 -l debug --logfile=c:\project_path\logs\worker.log --pidfile=c:\project_path\logs\worker.pid
安装web服务
nssm install web “c:\python36\python.exe” nssm set web AppDirectory c:\project_path nssm set web AppParameters manage.py runserver
nssm start celery-beat nssm start celery-worker nssm start web
# 查看状态 nssm status celery-beat nssm status celery-worker nssm status web