|
il y a 3 ans | |
---|---|---|
.. | ||
config | il y a 3 ans | |
controller | il y a 3 ans | |
static | il y a 3 ans | |
README.md | il y a 3 ans | |
debug.py | il y a 3 ans | |
gunicorn_config.py | il y a 3 ans | |
main.py | il y a 3 ans | |
test_sql.py | il y a 3 ans |
python3 -m pip install httptools uvloop gunicorn uvicorn
# uvicorn 启动
uvicorn local:app --reload --port 5000
# 多线程启动
gunicorn api_rec:app -c gunicorn_config.py -D
kill -9 $(lsof -t -i:5000)