centos 7安装redis yum install redis python安装redis模块 pip install redis 安装celery pip install celery test.py #encoding:utf-8 from flask import Flask from celery import Celery app = Flask(__name__) app.config['CELERY_BROKER_URL'] = 'redis://localhost:6379' app.confi…