uwsgi 常见配置

 

uwsgi常见配置

 

[uwsgi]
master=true
chdir=/home/op/gameserver_data # 项目目录地址
virtualenv=/home/op/gameserver_data/venv/ # 虚拟环境地址
wsgi-file=goldfinger.py
plugins=python
manage-script-name=true
mount=/=goldfinger.py
gevent=10
harakiri=5  # 设置超时时间
gevent-monkey-patch=true
lazy-apps=true
callable=app
socket=127.0.0.1:6062 #和nginx通信
processes=1 # 进程数 和cpu核心数保持一致
buffer-size=32768
stats=127.0.0.1:6061 #uwsgi top用的

 

posted on 2020-08-27 16:45  星河赵  阅读(941)  评论(0编辑  收藏  举报

导航