linux 安装 pyuthonhtml
安装 pip install gunicornlinux
manage.py 文件app
from app import create_app app = create_app() if __name__ == '__main__': app.run()
运行命令spa
gunicorn -D -b 0.0.0.0:12100 manage:app日志
-D 后台运行code
gunicorn --access-logfile access.log --error-logfile error.log -D -b :12100 manage:apphtm
access日志 blog
错误日志ip
gunicorn --timeout 20 --access-logfile access.log --error-logfile error.log -D -b :12100 manage:apppip
官网
http://docs.gunicorn.org/en/stable/run.html
https://www.jianshu.com/p/260f18aa5462