- python init_data.py
- 启动:python main.py -port=8080
- 启动:
- celery worker -A tasks -l INFO
- celery beat -A tasks -l INFO
- function.delay(*args, *kwargs)
- 启动:python main.py server start 8080 4
- 停止:python main.py server stop 8080 4
- 重启:python main.py server restart 8080 4
- 启动任务:python main.py tasks start
- 停止任务:python main.py tasks stop
- yum install python36-devel
- yum install openssl openssl-devel
- yum install libcurl-devel
- export PYCURL_CURL_CONFIG=/usr/bin/curl-config
- export PYCURL_SSL_LIBRARY=nss
- easy_install pycurl