https://blog.51cto.com/u_15080026/3765131
https://www.cnblogs.com/welog/p/16547020.html
uvicorn --help
if __name__ == '__main__':
uvicorn.run('main:app', host='0.0.0.0', port=8000, reload=True, workers=1,access_log=True)
log_config="log_config.json" , #日志配置
log_level=logging.INFO, #日志级别
access_log = False,
log_level=logging.info,debug,warning,error 或者"info"
use_colors=True
uvicorn main:app --reload
#uvicorn main:app --host=0.0.0.0 --port=8008 --reload
#nohup uvicorn main:app --host=0.0.0.0 --port=8008 --reload > runoob.log 2>&1 &
#uvicorn main:app --host=0.0.0.0 --port=8008 --reload
#获取ip地址需要加参 --proxy-headers --forwarded-allow-ips='*'