赞
踩
systemctl stop firewalld setenfore 0 yum install -y python3.9 pip3 install gunicorn pip3 install flask mkdir /flask mkdir /flask/logs vi /flask/config.py # gunicorn/django 服务监听地址、端口 bind = '0.0.0.0:8000' # gunicorn worker 进程个数,建议为: CPU核心个数 * 2 + 1 workers = 3 # gunicorn worker 类型, 使用异步的event类型IO效率比较高 #worker_class = "gevent"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。