---恢复内容开始---
启动Celery worker:
celery -A celery_tasks.tasks(项目名.类名) worker -l info
启动
from celery_tasks.tasks import generate_static_index_html generate_static_index_html.delay()
查看nginx进程:
ps aux | grep nginx
查看celery进程:
ps aux | grep celery
检查nginx配置的错误信息:
/usr/local/nginx/sbin/nginx -t
nginx重启:
/usr/local/nginx/sbin/nginx -s reload
nginx出现403 Forbidden
vi /usr/local/nginx/conf/nginx.conf
打开errlog.log
判断出错信息,如果是因为权限问题,可以使用:
use root;