tianyunperfect 4a56b87703 Merge remote-tracking branch 'origin/sql_redis' into sql_redis 3 lat temu
..
config 75a9bc8be3 1 3 lat temu
controller ff8dcf1043 update 3 lat temu
static e3dbf911f8 fast api init 3 lat temu
README.md ff8dcf1043 update 3 lat temu
debug.py e3dbf911f8 fast api init 3 lat temu
gunicorn_config.py ff8dcf1043 update 3 lat temu
main.py 8c9fa4a84a update 3 lat temu
test_sql.py 08cf0da15d update 3 lat temu

README.md

依赖

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)